lavc: Add an internal wrapper around get_format()
It will be useful in the following commits.
This commit is contained in:
committed by
Luca Barbato
parent
9880a0d4b1
commit
632ad2248e
@@ -5595,7 +5595,7 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx)
|
||||
if (!avctx->extradata_size || !avctx->extradata)
|
||||
return -1;
|
||||
if (!(avctx->flags & CODEC_FLAG_GRAY))
|
||||
avctx->pix_fmt = avctx->get_format(avctx, avctx->codec->pix_fmts);
|
||||
avctx->pix_fmt = ff_get_format(avctx, avctx->codec->pix_fmts);
|
||||
else
|
||||
avctx->pix_fmt = AV_PIX_FMT_GRAY8;
|
||||
avctx->hwaccel = ff_find_hwaccel(avctx);
|
||||
|
||||
Reference in New Issue
Block a user