[FFmpeg-devel] [PATCH] ffprobe: do not exit in case the demuxer returns AVERROR(EAGAIN)

Stefano Sabatini stefasab at gmail.com
Tue Nov 17 17:20:08 CET 2015


On date Tuesday 2015-11-17 17:12:46 +0100, wm4 encoded:
> On Tue, 17 Nov 2015 17:00:29 +0100
> Stefano Sabatini <stefasab at gmail.com> wrote:
[...]
> > No, just in case ret == AVERROR(EAGAIN), in all other failure cases it
> > will exit the loop immediately.
> > 
> > BTW, the same problem affects some API usage examples.
> 
> Yeah, I got that wrong - but even with EAGAIN, is there a guarantee?

I don't know. Note that this is also the same strategy applied by
ffplay and ffmpeg (in this case it will wait with a usleep). We could
abort in case a threshold count value is reached, but that would be
probably overkill.
-- 
FFmpeg = Fostering Freak Meaningful Proud Ecumenical Governor


More information about the ffmpeg-devel mailing list