Skip to content
Snippets Groups Projects
Commit d8b33a99 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Justin Ruggles
Browse files

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

Fixes use of uninitialized values.

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: default avatarJustin Ruggles <justin.ruggles@gmail.com>
parent 52e9854a
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,7 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -125,7 +125,7 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt)
int size, ret; int size, ret;
// FIXME! // FIXME!
if (c->currentframe > c->totalframes) if (c->currentframe >= c->totalframes)
return -1; return -1;
size = st->index_entries[c->currentframe].size; size = st->index_entries[c->currentframe].size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment