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 immediately, but almost
no demuxer implement support for it, only devices.

For now, if you want non-blocking operation, you need to run the
demuxers in a separate context, for example a thread.

Note that unless you intend to propose actual enhancements on that
issue, the correct list to ask about the use of the FFmpeg libraries is
this one:
http://ffmpeg.org/mailman/listinfo/libav-user

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to