Commit c1bfeda5 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1enc: Fix assertion failure with non zero bits per sample

Fixes Ticket5736
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 82e53b3c
...@@ -781,13 +781,11 @@ FF_ENABLE_DEPRECATION_WARNINGS ...@@ -781,13 +781,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
s->colorspace = 1; s->colorspace = 1;
s->transparency = 1; s->transparency = 1;
s->chroma_planes = 1; s->chroma_planes = 1;
if (!avctx->bits_per_raw_sample)
s->bits_per_raw_sample = 8; s->bits_per_raw_sample = 8;
break; break;
case AV_PIX_FMT_0RGB32: case AV_PIX_FMT_0RGB32:
s->colorspace = 1; s->colorspace = 1;
s->chroma_planes = 1; s->chroma_planes = 1;
if (!avctx->bits_per_raw_sample)
s->bits_per_raw_sample = 8; s->bits_per_raw_sample = 8;
break; break;
case AV_PIX_FMT_GBRP9: case AV_PIX_FMT_GBRP9:
......
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