Browse Source

avcodec/ffv1enc: fix assertion failure with unset bits per raw sample

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
749f85496c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/ffv1enc.c

+ 2
- 0
libavcodec/ffv1enc.c View File

@@ -755,6 +755,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
s->transparency = desc->nb_components == 4;
if (!avctx->bits_per_raw_sample && !s->bits_per_raw_sample)
s->bits_per_raw_sample = 8;
else if (!s->bits_per_raw_sample)
s->bits_per_raw_sample = 8;
break;
case AV_PIX_FMT_RGB32:
s->colorspace = 1;


Loading…
Cancel
Save