]> git.sesse.net Git - ffmpeg/commit
avcodec/on2avc: Use least max_depth for get_vlc2()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 18 Oct 2020 05:46:16 +0000 (07:46 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 21 Oct 2020 05:47:55 +0000 (07:47 +0200)
commitbce8e2f374db390d50ec79a6288a607782cca64a
treec18ebfa7092b4a08e0f6537d6ec66ff5e2f65cab
parent26cc9db744be8d5057a28c81cebb670197ac5692
avcodec/on2avc: Use least max_depth for get_vlc2()

The longest codes of any VLC codebooks are 18 bits long and the VLC
tables itself use 9 bits; therefore it is sufficient to read twice from
the table, yet this has been done thrice.

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