[FFmpeg-devel] [PATCH 2/3] lavf/utils: handle AVERROR_REDO.
Nicolas George
george at nsup.org
Thu Nov 26 19:47:53 CET 2015
Signed-off-by: Nicolas George <george at nsup.org>
---
libavformat/utils.c | 2 ++
1 file changed, 2 insertions(+)
An option can be added later to grant applications fine-grained control on
the looping, but it can not be the default as it would be an API change, and
it probably should not be the default anyway.
diff --git a/libavformat/utils.c b/libavformat/utils.c
index f33f2f5..d9165f1 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -680,6 +680,8 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
av_init_packet(pkt);
ret = s->iformat->read_packet(s, pkt);
if (ret < 0) {
+ if (ret == AVERROR_REDO)
+ continue;
if (!pktl || ret == AVERROR(EAGAIN))
return ret;
for (i = 0; i < s->nb_streams; i++) {
--
2.6.2
More information about the ffmpeg-devel
mailing list