[FFmpeg-devel] [PATCH 09/28] if av_read_packet returns AVERROR_IO, we are done. ffmpeg's codecs might or might not handle returning any completed demuxed packets correctly

Mans Rullgard mans
Wed Jun 30 11:09:37 CEST 2010


From: Cory Fields <theuni-nospam- at xbmc.org>

---
 libavformat/utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 4ab18bb..09034bb 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1105,6 +1105,8 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
             if (ret < 0) {
                 if (ret == AVERROR(EAGAIN))
                     return ret;
+                if (ret == AVERROR_IO)
+                    return ret;
                 /* return the last frames, if any */
                 for(i = 0; i < s->nb_streams; i++) {
                     st = s->streams[i];
-- 
1.7.1.1




More information about the ffmpeg-devel mailing list