[FFmpeg-devel] [WIP][RFC][PATCH] avcodec: add BRAW video decoder

Paul B Mahol onemda at gmail.com
Sun Dec 15 23:09:48 EET 2019


On 12/15/19, Kieran Kunhya <kieran618 at googlemail.com> wrote:
>> +static av_cold void braw_static_init(void)
>> +{
>> +    INIT_VLC_STATIC(&dc_vlc, 13, 16, dc_bits, 1, 1, dc_codes, 2, 2,
>> 8192);
>> +    INIT_VLC_STATIC(&ac_vlc, 18, 194, ac_bits, 1, 1, ac_codes, 4, 4,
>> 262144);
>> +}
>> +
>
>> +    .caps_internal    = FF_CODEC_CAP_INIT_THREADSAFE |
>> +                        FF_CODEC_CAP_INIT_CLEANUP,
>> +};
>
> If I understand correctly you can't be threadsafe and use
> INIT_VLC_STATIC like this.
> You need something like pthread_once()

There is thread_once there. And similar is done for imm4.
So do not see what you complain about.

> Kieran
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list