1
0
Fork 0

if av_read_packet returns AVERROR_IO, we are done. ffmpeg's codecs might or might not handle returning any completed demuxed packets correctly

This commit is contained in:
Cory Fields 2010-06-28 01:55:31 -04:00 committed by Hendrik Leppkes
parent 5d7f234e7e
commit 9d7097b137
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 2 additions and 0 deletions

View File

@ -1347,6 +1347,8 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
if (ret < 0) {
if (ret == AVERROR(EAGAIN))
return ret;
if (ret == AVERROR(EIO))
return ret;
/* flush the parsers */
for (unsigned i = 0; i < s->nb_streams; i++) {
AVStream *const st = s->streams[i];