Re: [Libav-user] calling av_register_all() twice makes libav stuck.

2017-05-22 Thread Hendrik Leppkes
On Mon, May 22, 2017 at 11:04 AM, Gabriele Greco wrote: >> >> AVOnce control = AV_ONCE_INIT; >> >> ff_thread_once(, register_all); >> } >> >> Should it be a static or a global variable here? >> > > Considering that AVOnce is defined as 'char' it seems a bug to

Re: [Libav-user] calling av_register_all() twice makes libav stuck.

2017-05-22 Thread Gabriele Greco
> > > AVOnce control = AV_ONCE_INIT; > > ff_thread_once(, register_all); > } > > Should it be a static or a global variable here? > > Considering that AVOnce is defined as 'char' it seems a bug to me too. -- *Bye,* * Gabry* ___ Libav-user

[Libav-user] calling av_register_all() twice makes libav stuck.

2017-05-22 Thread 易源
Hi, I tried to call av_register_all() multiple times, and it works well for old lib version, but now it will cause the following call to avformat_open_input() stuck forever. After examining the code for libavformat, I found that there was a code change about Mar, 2017 that changed