diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2017-11-06 22:39:16 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-06 19:13:03 -0300 |
commit | 4ada428aae2f4ab42c6cebc0d7591c0e62db6fe2 (patch) | |
tree | 64ff90f19d094203be823c34caf0da5e8390eb61 /libavcodec/vp3.c | |
parent | 7d1c79f533e0c80cbcda60d3cbd8216551a1bac5 (diff) | |
download | ffmpeg-4ada428aae2f4ab42c6cebc0d7591c0e62db6fe2.tar.gz |
avcodec: remove remaining uses of avcodec_get_chroma_sub_sample
Replace them with av_pix_fmt_get_chroma_sub_sample.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index f167acf4ee..cf9c57f5fa 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1761,7 +1761,9 @@ static av_cold int vp3_decode_init(AVCodecContext *avctx) for (i = 0; i < 3; i++) s->qps[i] = -1; - avcodec_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_x_shift, &s->chroma_y_shift); + ret = av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_x_shift, &s->chroma_y_shift); + if (ret) + return ret; s->y_superblock_width = (s->width + 31) / 32; s->y_superblock_height = (s->height + 31) / 32; |