Commit d8b33a99 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Justin Ruggles

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

Fixes use of uninitialized values.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarJustin Ruggles <justin.ruggles@gmail.com>
parent 52e9854a
......@@ -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