]> git.sesse.net Git - ffmpeg/commit
avcodec/motionpixels: Simplify creating VLC tables
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 29 Oct 2020 10:12:32 +0000 (11:12 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:45 +0000 (17:51 +0100)
commit949367b0ec660d2496a62f7acc359bac651bdc02
treeff860c8dda7d7a794c9a5713e6e24d5f3ac73a0b
parentb9dc000679c55ff2c013bdea17b2235228b1ac3f
avcodec/motionpixels: Simplify creating VLC tables

By using ff_init_vlc_from_lengths(), we do not have to keep track of the
codes themselves, but can offload this to ff_init_vlc_from_lengths().

Furthermore, the old code presumed sizeof(int) == 4; this is no longer
so.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/motionpixels.c