Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-09 16:53:50 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-06-09 17:11:53 +0400
commit637093a2db53614ab684461f0cf8e642b755e6ee (patch)
tree53ee39b98cad84b38557bd42034c6794d0c08b46 /libavcodec/utvideoenc.c
parent29a1164e6029875f896cec56c8d92369cd59a959 (diff)
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/utvideoenc.c')
-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;
/*