diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-03-06 17:48:18 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-05-11 14:59:07 +0200 |
commit | 632ad2248e2e5d8cd4b51e6c87c943a38c3da425 (patch) | |
tree | 13cdd759788553bd29577d23a44eedf0654ab99b /libavcodec/h264_slice.c | |
parent | 9880a0d4b131ef36694d62f78060350a81f08b80 (diff) | |
download | ffmpeg-632ad2248e2e5d8cd4b51e6c87c943a38c3da425.tar.gz |
lavc: Add an internal wrapper around get_format()
It will be useful in the following commits.
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r-- | libavcodec/h264_slice.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index cc1b8965ed..5db8ef94b9 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -1008,11 +1008,11 @@ static enum AVPixelFormat get_pixel_format(H264Context *h) return h->avctx->color_range == AVCOL_RANGE_JPEG ? AV_PIX_FMT_YUVJ422P : AV_PIX_FMT_YUV422P; } else { - return h->avctx->get_format(h->avctx, h->avctx->codec->pix_fmts ? - h->avctx->codec->pix_fmts : - h->avctx->color_range == AVCOL_RANGE_JPEG ? - h264_hwaccel_pixfmt_list_jpeg_420 : - h264_hwaccel_pixfmt_list_420); + return ff_get_format(h->avctx, h->avctx->codec->pix_fmts ? + h->avctx->codec->pix_fmts : + h->avctx->color_range == AVCOL_RANGE_JPEG ? + h264_hwaccel_pixfmt_list_jpeg_420 : + h264_hwaccel_pixfmt_list_420); } break; default: |