On 4/30/11 8:53 PM, aviad rozenhek wrote:
thanks for your suggestion,
I have found what I believe to be a cleaner approach, your feedback
appreciated.

const char* url = "udp://localhost?localport=1234";

// pre-allocate the AVFormatContext and set the non block flag
         AVFormatContext* ctx = avformat_alloc_context();
ctx->flags |= AVFMT_FLAG_NONBLOCK;

AVFMT_FLAG_NONBLOCK doesn't seem to forward to the avio layer but seems just used in avdevice.

Probably might have sense doing that though.

lu
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to