]> git.sesse.net Git - ffmpeg/commit
avcodec/g2meet, mjpegdec: Factor out common VLC initialization code
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 9 Feb 2021 23:20:26 +0000 (00:20 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 23 Feb 2021 09:14:25 +0000 (10:14 +0100)
commitd26198ada3279e9d7ef5d3d2cca13b0eff5144f0
tree9660cec663e721d0e8a6629a0d23cb7e0a747827
parentf180f515de4428e56514a86ea76eaa13e472f87c
avcodec/g2meet, mjpegdec: Factor out common VLC initialization code

While just at it, remove the nb_codes parameter: It is redundant
(the number of codes is implicitly contained in the array containing how
many entries of a specific size there are) and for this reason it might
even be wrong, so it is better to check what is actually used instead.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/Makefile
libavcodec/g2meet.c
libavcodec/mjpegdec.c
libavcodec/mjpegdec.h
libavcodec/mjpegdec_common.c [new file with mode: 0644]