[FFmpeg-devel] [PATCH 1/4] avcodec/mpeg12enc: Always initialize MPEG-2 intra VLC table lengths

Michael Niedermayer michael at niedermayer.cc
Tue Nov 24 23:03:22 EET 2020


On Tue, Nov 24, 2020 at 03:41:19PM +0100, Andreas Rheinhardt wrote:
> The MPEG-1/2 encoders initialize several tables once during the first
> time one of the encoders is initialized; the table for MPEG-2 intra VLC
> lengths is only initialized if it is used for this encoder instance.
> This implies that if the first MPEG-1/2 encoder to be initialized does
> not use it, it will never be initialized even if a later encoder
> instance makes use of them. Fix this by initializing this table
> unconditionally.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/mpeg12enc.c | 1 -
>  1 file changed, 1 deletion(-)

LGTM

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201124/92eac8f7/attachment.sig>


More information about the ffmpeg-devel mailing list