diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-13 01:10:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-16 16:24:16 +0100 |
commit | 534a89478d42fd9452b399e715427873e536d889 (patch) | |
tree | 61a033a23717acf6c709dce5b24e847af0aa5aab /libavcodec/huffyuvenc.c | |
parent | 8173d1ffc0b742972db6c9cffb2cec204e2a1a96 (diff) | |
download | ffmpeg-534a89478d42fd9452b399e715427873e536d889.tar.gz |
avcodec/huffyuv: add a field that represents the number of symbols
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvenc.c')
-rw-r--r-- | libavcodec/huffyuvenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index 0ab61b26c0..52244809ab 100644 --- a/libavcodec/huffyuvenc.c +++ b/libavcodec/huffyuvenc.c @@ -228,6 +228,7 @@ static av_cold int encode_init(AVCodecContext *avctx) av_log(avctx, AV_LOG_ERROR, "format not supported\n"); return AVERROR(EINVAL); } + s->n = 1<<s->bps; avctx->bits_per_coded_sample = s->bitstream_bpp; s->decorrelate = s->bitstream_bpp >= 24 && !s->yuv && avctx->pix_fmt != AV_PIX_FMT_GBRP; |