rpl: return AVERROR_EOF instead of -1

This commit is contained in:
Piotr Bandurski 2012-11-21 09:48:46 +00:00 committed by Paul B Mahol
parent 030db0c1dd
commit 9a0ecd507a
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ static int rpl_read_packet(AVFormatContext *s, AVPacket *pkt)
stream = s->streams[rpl->chunk_part]; stream = s->streams[rpl->chunk_part];
if (rpl->chunk_number >= stream->nb_index_entries) if (rpl->chunk_number >= stream->nb_index_entries)
return -1; return AVERROR_EOF;
index_entry = &stream->index_entries[rpl->chunk_number]; index_entry = &stream->index_entries[rpl->chunk_number];