Re: [FFmpeg-devel] av_read_frame() question about blocking

2018-04-25 Thread Nicolas George
Philip Prindeville (2018-04-24): > It looks like it’s internally going to keep making multiple calls to > the read_packet function until it’s acquired enough. > > Is that correct? Yes. There is AVFMT_FLAG_NONBLOCK that would cause demuxers to return AVERROR(EAGAIN) if not enough data is available

[FFmpeg-devel] av_read_frame() question about blocking

2018-04-24 Thread Philip Prindeville
Hi. I was reading the documentation and it wasn’t clear what happens in the following case. I’ve set up a network connection, and data is being delivered asynchronously to a buffer (a sort of elastic FIFO). I’ve set up avio_alloc_context() to read from that FIFO. I’ve done an avformat_open_in