Commit 4d8bd60a authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavc/vc1: Set color_range for gray decoding.

parent caa41d1e
......@@ -429,8 +429,11 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx)
return -1;
if (!(avctx->flags & CODEC_FLAG_GRAY))
avctx->pix_fmt = ff_get_format(avctx, avctx->codec->pix_fmts);
else
else {
avctx->pix_fmt = AV_PIX_FMT_GRAY8;
if (avctx->color_range == AVCOL_RANGE_UNSPECIFIED)
avctx->color_range = AVCOL_RANGE_MPEG;
}
v->s.avctx = avctx;
if ((ret = ff_vc1_init_common(v)) < 0)
......
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