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

@ -864,6 +864,11 @@ enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const en
return fmt[0];
}
int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
{
return avctx->get_format(avctx, fmt);
}
#if FF_API_AVFRAME_LAVC
void avcodec_get_frame_defaults(AVFrame *frame)
{