]> git.sesse.net Git - ffmpeg/commit
avcodec/mobiclip: Use smaller type for codes
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 24 Oct 2020 11:01:07 +0000 (13:01 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 26 Oct 2020 06:56:51 +0000 (07:56 +0100)
commit307a1b8e54841c7924aaa24ca400ce8129d64855
tree72d79cc997f9786f0fac6dddb8ac2d60bdfc581c
parent77e8c959aa0e6bbe2ddfa9a11f3592cde2087f9a
avcodec/mobiclip: Use smaller type for codes

Even though the length of these codes is > 8, only the lowest seven bits
are ever set (because the long codes are on the left of the tree), so
one can use an uint8_t for them, saving space.

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