You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
tta: fix off be 1 error in the end detection.
Fixes use of uninitialized values. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
This commit is contained in:
committed by
Justin Ruggles
parent
52e9854a83
commit
d8b33a9989
@@ -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;
|
||||
|
Reference in New Issue
Block a user