]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg12enc: Always initialize MPEG-2 intra VLC table lengths
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 24 Nov 2020 12:29:29 +0000 (13:29 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 25 Nov 2020 00:01:05 +0000 (01:01 +0100)
commitef3c1670d488d1cffc98115a5e67b07ee921e47d
tree28e1968763c179d820530831e8201ac791f86c8e
parent278984b3430727c850de4b67cdde248be6d99ae1
avcodec/mpeg12enc: Always initialize MPEG-2 intra VLC table lengths

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.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/mpeg12enc.c