[Libav-user] av_read_frame blocking

Mark Kenna mark.kenna at sureviewsystems.com
Thu Jun 28 12:28:33 CEST 2012


Hi All

I am trying to implement a way of cancelling the call to 
av_read_frame(..) which seems to block indefinitely. I have added the 
interrupt callback to the formatcontext but this callback only gets 
fired on the call to avformat_open_input(..) not the call to 
av_read_frame(...). I have also tried setting AVFMT_FLAG_NONBLOCK but 
this doesn't work either.

The problem does not seem to happen when using UDP though..?

Anyone have any suggestions?

Thanks,
Mark.


More information about the Libav-user mailing list