Commit 4925b6e7 authored by Michael Niedermayer's avatar Michael Niedermayer

tta: fix off be 1 error in the end detection.

Fixes use of uninitialized values.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4dfb74cd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment