Hi, On Sun, May 1, 2011 at 3:32 AM, Luca Barbato <[email protected]> wrote: > 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.
We need flags in libavformat whether a demuxer handles NONBLOCK yes or no. Most of them don't and will fail. Ronald _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
