mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 02:42:21 +00:00
tta: fix off be 1 error in the end detection.
Fixes use of uninitialized values. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4dfb74cd4f
commit
4925b6e784
@ -125,7 +125,7 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
int size, ret;
|
||||
|
||||
// FIXME!
|
||||
if (c->currentframe > c->totalframes)
|
||||
if (c->currentframe >= c->totalframes)
|
||||
return -1;
|
||||
|
||||
size = st->index_entries[c->currentframe].size;
|
||||
|
Loading…
Reference in New Issue
Block a user