tta: Fix returned error code at EOF
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jan 2012 16:34:22 +0000 (17:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jan 2012 23:08:36 +0000 (00:08 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/tta.c

index 01cceeb..6e51356 100644 (file)
@@ -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;