Browse Source

avcodec/huffyuvenc: init bps from pixel descriptor

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
6c004e8aad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/huffyuvenc.c

+ 1
- 1
libavcodec/huffyuvenc.c View File

@@ -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);


Loading…
Cancel
Save