[FFmpeg-devel] [WIP][RFC][PATCH] avcodec: add BRAW video decoder
Kieran Kunhya
kieran618 at googlemail.com
Sun Dec 15 02:58:00 EET 2019
> +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()
Kieran
More information about the ffmpeg-devel
mailing list