aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-09 14:53:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-09 15:11:53 +0200
commit637093a2db53614ab684461f0cf8e642b755e6ee (patch)
tree53ee39b98cad84b38557bd42034c6794d0c08b46 /libavcodec
parent29a1164e6029875f896cec56c8d92369cd59a959 (diff)
downloadffmpeg-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.c2
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;
/*