Commit 749f8549 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c239fcb9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment