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

Hendrik Leppkes h.leppkes at gmail.com
Mon May 22 13:03:22 EEST 2017


On Mon, May 22, 2017 at 11:04 AM, Gabriele Greco
<gabriele.greco at wyscout.com> wrote:
>>
>>     AVOnce control = AV_ONCE_INIT;
>>
>>     ff_thread_once(&control, 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.
>

You are correct, this should be a static variable. I'm sending a patch.

- Hendrik


More information about the Libav-user mailing list