X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fffv1enc.c;h=45ab3a39a383152fb83a349d792671ca6e913e8b;hb=631d56ffc823e773fb3db528b36647d067f18db3;hp=af727a5cd57d5f2ba88146bfc92f7a5b966d0e04;hpb=3f36607ef0dfa2c11ae6d90959b8f94c8b429d68;p=ffmpeg diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index af727a5cd57..45ab3a39a38 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -753,7 +753,7 @@ static av_cold int encode_init(AVCodecContext *avctx) s->chroma_planes = desc->nb_components < 3 ? 0 : 1; s->colorspace = 0; s->transparency = desc->nb_components == 4; - if (!avctx->bits_per_raw_sample) + if (!avctx->bits_per_raw_sample && !s->bits_per_raw_sample) s->bits_per_raw_sample = 8; break; case AV_PIX_FMT_RGB32: