Hi,

Cai, Xin wrote:
So I am writing a decoder that reads rtp video packets from the network,
but I am running into a problem where since av_read_frame is a blocking
function ( doesn't return until it actually reads something ) so that
means if the remote end suddenly stops sending video then my program
would get stuck on av_read_frame. Is there a way to make av_read_frame
to be nonblocking? I tried to set the AVFMT_FLAG_NONBLOCK, but it
doesn't seem to work, then again I am not sure if I am doing it
correctly.

I suspect AVFMT_FLAG_NONBLOCK is currently not supported by the RTP
demuxer. I'll have a look and send a patch for testing later.


                                Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to