Browse code

rpl: return AVERROR_EOF instead of -1

Piotr Bandurski authored on 2012/11/21 18:48:46
Showing 1 changed files
... ...
@@ -287,7 +287,7 @@ static int rpl_read_packet(AVFormatContext *s, AVPacket *pkt)
287 287
     stream = s->streams[rpl->chunk_part];
288 288
 
289 289
     if (rpl->chunk_number >= stream->nb_index_entries)
290
-        return -1;
290
+        return AVERROR_EOF;
291 291
 
292 292
     index_entry = &stream->index_entries[rpl->chunk_number];
293 293