[FFmpeg-cvslog] avcodec/magicyuv: change bits used by 12bit tables
Paul B Mahol
git at videolan.org
Mon Aug 31 20:57:10 EEST 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Aug 31 19:53:30 2020 +0200| [57915df230b8241cb3636041c4113a2e1f8fa92f] | committer: Paul B Mahol
avcodec/magicyuv: change bits used by 12bit tables
Higher number slows decoder.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=57915df230b8241cb3636041c4113a2e1f8fa92f
---
libavcodec/magicyuv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
index af2f1687aa..a255f82d9c 100644
--- a/libavcodec/magicyuv.c
+++ b/libavcodec/magicyuv.c
@@ -152,7 +152,7 @@ static int huff_build12(VLC *vlc, uint8_t *len)
}
ff_free_vlc(vlc);
- return ff_init_vlc_sparse(vlc, FFMIN(he[4095].len, 14), 4096,
+ return ff_init_vlc_sparse(vlc, FFMIN(he[4095].len, 12), 4096,
bits, sizeof(*bits), sizeof(*bits),
codes, sizeof(*codes), sizeof(*codes),
syms, sizeof(*syms), sizeof(*syms), 0);
More information about the ffmpeg-cvslog
mailing list