diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-11-12 01:25:43 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-11-13 16:14:55 +0100 |
commit | c1a02e884ac785033baab356a5437adf057a4189 (patch) | |
tree | caa6e75ce56cbc0d15cae71eb38947ed730e46c9 /libavcodec/mpegvideo.c | |
parent | 22a0827dff29a94e7fd07ad2782f169b2703c70d (diff) | |
download | ffmpeg-c1a02e884ac785033baab356a5437adf057a4189.tar.gz |
pixdesc: add av_pix_fmt_get_chroma_sub_sample
Deprecate avcodec_get_chroma_sub_sample.
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index af9e0403de..8a48d9937a 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -867,8 +867,9 @@ av_cold int ff_MPV_common_init(MpegEncContext *s) if (s->width && s->height) { /* set chroma shifts */ - avcodec_get_chroma_sub_sample(s->avctx->pix_fmt, &s->chroma_x_shift, - &s->chroma_y_shift); + av_pix_fmt_get_chroma_sub_sample(s->avctx->pix_fmt, + &s->chroma_x_shift, + &s->chroma_y_shift); /* convert fourcc to upper case */ s->codec_tag = avpriv_toupper4(s->avctx->codec_tag); @@ -1781,8 +1782,8 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict) (s->codec_id == AV_CODEC_ID_H264 ? 0 : 1); s->low_delay = 0; // needed to see the vectors without trashing the buffers - avcodec_get_chroma_sub_sample(s->avctx->pix_fmt, - &h_chroma_shift, &v_chroma_shift); + av_pix_fmt_get_chroma_sub_sample(s->avctx->pix_fmt, + &h_chroma_shift, &v_chroma_shift); for (i = 0; i < 3; i++) { memcpy(s->visualization_buffer[i], pict->data[i], (i == 0) ? pict->linesize[i] * height: |