[Libav-user] Unable to set UDP timeout for av_read_frame () . It goes with default value of 20 seconds.

wm4 nfxjfg at googlemail.com
Mon Mar 17 18:10:07 CET 2014


On Mon, 17 Mar 2014 22:20:19 +0530
whoami Jils <get2jils at gmail.com> wrote:

> Hi
> 
>  i follow below step to set UDP socket timeout of 5 seconds.
> 
> AVDictionary *stream_opts = 0;
> av_dict_set(&stream_opts, "timeout", 3000000) // in microseconds.
> avformat_open_input ( &myContext, "<myIPAddr", NULL, &stream_opts);

Just an uniformed guess: does setting the interrupt callback help?


More information about the Libav-user mailing list