Re: [FFmpeg-devel] [PATCH 1/2] avcodec/sheervideo: Improve creating VLC tables

2020-10-10 Thread Paul B Mahol
On Sat, Oct 10, 2020 at 06:57:03AM +0200, Andreas Rheinhardt wrote: > 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. > > Signed-off-by: Andre

[FFmpeg-devel] [PATCH 1/2] avcodec/sheervideo: Improve creating VLC tables

2020-10-09 Thread Andreas Rheinhardt
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. Signed-off-by: Andreas Rheinhardt --- libavcodec/sheervideo.c | 19 +++ 1 file c