From e285e2214333e7d625fb5bac3022c3cfb57b7f1e Mon Sep 17 00:00:00 2001 From: wang-bin Date: Wed, 8 Feb 2017 22:08:49 +0800 Subject: Use AV_INPUT_BUFFER_PADDING_SIZE instead of deprecated one Signed-off-by: wm4 --- common/av_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/av_common.c b/common/av_common.c index aa1a1bfdf2..5c58f3fea8 100644 --- a/common/av_common.c +++ b/common/av_common.c @@ -42,7 +42,7 @@ int mp_lavc_set_extradata(AVCodecContext *avctx, void *ptr, int size) if (size) { av_free(avctx->extradata); avctx->extradata_size = 0; - avctx->extradata = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); + avctx->extradata = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); if (!avctx->extradata) return -1; avctx->extradata_size = size; @@ -79,7 +79,7 @@ AVCodecParameters *mp_codec_params_to_av(struct mp_codec_params *c) avp->codec_tag = c->codec_tag; if (c->extradata_size) { avp->extradata = - av_mallocz(c->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); + av_mallocz(c->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); if (!avp->extradata) goto error; avp->extradata_size = c->extradata_size; -- cgit v1.2.3