rpl: return AVERROR_EOF instead of -1
authorPiotr Bandurski <ami_stuff@o2.pl>
Wed, 21 Nov 2012 09:48:46 +0000 (09:48 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 21 Nov 2012 09:48:46 +0000 (09:48 +0000)
libavformat/rpl.c

index b790597..dcc7950 100644 (file)
@@ -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];