[FFmpeg-cvslog] rpl: return AVERROR_EOF instead of -1

Piotr Bandurski git at videolan.org
Wed Nov 21 11:07:32 CET 2012


ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Wed Nov 21 09:48:46 2012 +0000| [9a0ecd507a94b974206bfc96c6784c6c21462116] | committer: Paul B Mahol

rpl: return AVERROR_EOF instead of -1

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a0ecd507a94b974206bfc96c6784c6c21462116
---

 libavformat/rpl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rpl.c b/libavformat/rpl.c
index b790597..dcc7950 100644
--- a/libavformat/rpl.c
+++ b/libavformat/rpl.c
@@ -287,7 +287,7 @@ static int rpl_read_packet(AVFormatContext *s, AVPacket *pkt)
     stream = s->streams[rpl->chunk_part];
 
     if (rpl->chunk_number >= stream->nb_index_entries)
-        return -1;
+        return AVERROR_EOF;
 
     index_entry = &stream->index_entries[rpl->chunk_number];
 



More information about the ffmpeg-cvslog mailing list