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:
parent
d24b136f53
commit
b1c2fb165b
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue