summaryrefslogtreecommitdiff
path: root/libavcodec/utvideoenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-09 14:49:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-09 14:56:00 +0200
commit334aafe5650007dab180f12a49081ad1561f0e08 (patch)
tree0582dc291e66c2f2e03e5b6c18b03f926f0fb0db /libavcodec/utvideoenc.c
parent673716c54b39eba9579a38ad222130e3f9549167 (diff)
avcodec/huffman/ff_huff_gen_len_table: support skiping stat=0 entries
This is probably not the simplest solution but as this is needed for a bugfix, simplification is left for later. 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 0a96fed0ac..23ca28c437 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)
+ if ((ret = ff_huff_gen_len_table(lengths, counts, 256, 0)) < 0)
return ret;
/*