[FFmpeg-devel] [PATCH v2 030/162] avcodec/rv10: Make initializing static RV10 VLCs thread-safe

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Wed Nov 25 01:28:39 EET 2020


Moritz Barsnick:
> On Fri, Nov 20, 2020 at 08:19:03 +0100, Andreas Rheinhardt wrote:
>> +static av_cold void rv10_init_static(void)
>> +{
>> +        INIT_VLC_STATIC(&rv_dc_lum, DC_VLC_BITS, 256,
>> +                        rv_lum_bits, 1, 1,
>> +                        rv_lum_code, 2, 2, 16384);
>> +        INIT_VLC_STATIC(&rv_dc_chrom, DC_VLC_BITS, 256,
>> +                        rv_chrom_bits, 1, 1,
>> +                        rv_chrom_code, 2, 2, 16388);
>> +    ff_h263_decode_init_vlc();
>> +}
> 
> Nit: indentation.
> 
> Moritz

This has been intentionally not done in this patch to show that this
code has just been moved and not really modified; the proper indentation
will be restored in the next patch (which replaces these two macros with
other macros).

- Andreas


More information about the ffmpeg-devel mailing list