X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ftta.c;h=6e513563bed11a69c90fdf0805ef5050d7c1eea5;hb=01fcbdf9cedcf14418b5886205261e532167f949;hp=af9476ecc0698904d8f3e1f7f7a60930e57bd1cd;hpb=4121148388f4fd02ace89eca364904d3ea8bcfe7;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;