aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tta.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-06 17:34:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-07 00:08:36 +0100
commit877f6eb5fbe0ef71aa410a399713cae76f4e4eef (patch)
tree707280e201d5c2c77fb14a5bb26f2b684ff5b6e5 /libavformat/tta.c
parent4925b6e784cad1b00561f786b92a8d5eb6c28666 (diff)
downloadffmpeg-877f6eb5fbe0ef71aa410a399713cae76f4e4eef.tar.gz
tta: Fix returned error code at EOF
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/tta.c')
-rw-r--r--libavformat/tta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tta.c b/libavformat/tta.c
index 01cceeb86f..6e513563be 100644
--- a/libavformat/tta.c
+++ b/libavformat/tta.c
@@ -126,7 +126,7 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt)
// FIXME!
if (c->currentframe >= c->totalframes)
- return -1;
+ return AVERROR_EOF;
size = st->index_entries[c->currentframe].size;