From 877f6eb5fbe0ef71aa410a399713cae76f4e4eef Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 6 Jan 2012 17:34:22 +0100 Subject: [PATCH] tta: Fix returned error code at EOF Signed-off-by: Michael Niedermayer --- libavformat/tta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;