lavc: Add an internal wrapper around get_format()

It will be useful in the following commits.
This commit is contained in:
Anton Khirnov
2014-03-06 17:48:18 +01:00
committed by Luca Barbato
parent 9880a0d4b1
commit 632ad2248e
7 changed files with 22 additions and 10 deletions

View File

@@ -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);