]> git.sesse.net Git - ffmpeg/commit
avcodec/sheervideo: Improve creating VLC tables
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 10 Oct 2020 04:13:21 +0000 (06:13 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 10 Oct 2020 13:37:25 +0000 (15:37 +0200)
commit1bff2f3d929b7e1229b9a125e3cf938ece1665cc
tree49b797c6991c12ec968732f18854fc800615f56c
parent11a6347f9e544a1b9fba059ae02c30c0e512c195
avcodec/sheervideo: Improve creating VLC tables

Don't needlessly copy an array around; don't create a table with
default symbols; and use smaller types to save stack space: The longest
code here is 16 bits, so one can store the codes in this type.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/sheervideo.c