rl2: return EOF on EOF
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Dec 2012 01:51:51 +0000 (02:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Dec 2012 01:51:51 +0000 (02:51 +0100)
Fixes Ticket1947

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rl2.c

index 73d6b27..800e12e 100644 (file)
@@ -232,7 +232,7 @@ static int rl2_read_packet(AVFormatContext *s,
     }
 
     if(stream_id == -1)
-        return AVERROR(EIO);
+        return AVERROR_EOF;
 
     ++rl2->index_pos[stream_id];