[FFmpeg-devel] [PATCH 20/39] avcodec/h261dec: Don't initialize unused part of RLTable

Anton Khirnov anton at khirnov.net
Mon Jan 18 12:44:47 EET 2021


Quoting Andreas Rheinhardt (2020-12-10 12:16:38)
> The H.261 decoder only uses an RLTable's VLC table, yet it also
> initializes its index_run, max_level and max_run. This commit stops
> doing so; it will also simplify making this decoder init-threadsafe,
> as the H.261 decoder and encoder now initialize disjoint parts of their
> common RLTable.

Does it then make sense to keep this RLTable common?

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list