X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ftta.c;h=6e513563bed11a69c90fdf0805ef5050d7c1eea5;hb=79f80f5c1f6e292af5d6413600e7129d36cb9be6;hp=af9476ecc0698904d8f3e1f7f7a60930e57bd1cd;hpb=0e5fbbd7768a6eb42809c08a5dd46093caf407d3;p=ffmpeg diff --git a/libavformat/tta.c b/libavformat/tta.c index af9476ecc06..6e513563bed 100644 --- a/libavformat/tta.c +++ b/libavformat/tta.c @@ -125,8 +125,8 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt) int size, ret; // FIXME! - if (c->currentframe > c->totalframes) - return -1; + if (c->currentframe >= c->totalframes) + return AVERROR_EOF; size = st->index_entries[c->currentframe].size;