aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2012-11-12 01:25:43 +0100
committerLuca Barbato <lu_zero@gentoo.org>2012-11-13 16:14:55 +0100
commitc1a02e884ac785033baab356a5437adf057a4189 (patch)
treecaa6e75ce56cbc0d15cae71eb38947ed730e46c9 /libavcodec/utils.c
parent22a0827dff29a94e7fd07ad2782f169b2703c70d (diff)
downloadffmpeg-c1a02e884ac785033baab356a5437adf057a4189.tar.gz
pixdesc: add av_pix_fmt_get_chroma_sub_sample
Deprecate avcodec_get_chroma_sub_sample.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 8c203b92fb..054dc693e9 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -427,7 +427,8 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);
const int pixel_size = desc->comp[0].step_minus1 + 1;
- avcodec_get_chroma_sub_sample(s->pix_fmt, &h_chroma_shift, &v_chroma_shift);
+ av_pix_fmt_get_chroma_sub_sample(s->pix_fmt, &h_chroma_shift,
+ &v_chroma_shift);
avcodec_align_dimensions2(s, &w, &h, stride_align);