diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-13 01:13:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-16 16:24:24 +0100 |
commit | 6c004e8aada00d96f5c38e50c9770efb1eaaaa59 (patch) | |
tree | 323f51c4c6268778713f8b164dabeb00829597cd /libavcodec | |
parent | 534a89478d42fd9452b399e715427873e536d889 (diff) | |
download | ffmpeg-6c004e8aada00d96f5c38e50c9770efb1eaaaa59.tar.gz |
avcodec/huffyuvenc: init bps from pixel descriptor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/huffyuvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index 52244809ab..bd633a2fed 100644 --- a/libavcodec/huffyuvenc.c +++ b/libavcodec/huffyuvenc.c @@ -188,7 +188,7 @@ static av_cold int encode_init(AVCodecContext *avctx) avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; avctx->coded_frame->key_frame = 1; - s->bps = 8; + s->bps = desc->comp[0].depth_minus1 + 1; s->yuv = !(desc->flags & AV_PIX_FMT_FLAG_RGB) && desc->nb_components >= 2; s->chroma = desc->nb_components > 2; s->alpha = !!(desc->flags & AV_PIX_FMT_FLAG_ALPHA); |