diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-09 14:53:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-09 15:11:53 +0200 |
commit | 637093a2db53614ab684461f0cf8e642b755e6ee (patch) | |
tree | 53ee39b98cad84b38557bd42034c6794d0c08b46 /libavcodec | |
parent | 29a1164e6029875f896cec56c8d92369cd59a959 (diff) | |
download | ffmpeg-637093a2db53614ab684461f0cf8e642b755e6ee.tar.gz |
avcodec/utvideoenc: skip unused huffman entries
This very slightly improves compression
Found-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utvideoenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index 23ca28c437..72e8754887 100644 --- a/libavcodec/utvideoenc.c +++ b/libavcodec/utvideoenc.c @@ -468,7 +468,7 @@ static int encode_plane(AVCodecContext *avctx, uint8_t *src, } /* Calculate huffman lengths */ - if ((ret = ff_huff_gen_len_table(lengths, counts, 256, 0)) < 0) + if ((ret = ff_huff_gen_len_table(lengths, counts, 256, 1)) < 0) return ret; /* |