summaryrefslogtreecommitdiffstats
path: root/common/av_common.c
diff options
context:
space:
mode:
authorwang-bin <wbsecg1@gmail.com>2017-02-08 22:08:49 +0800
committerwm4 <wm4@nowhere>2017-02-08 16:55:16 +0100
commite285e2214333e7d625fb5bac3022c3cfb57b7f1e (patch)
treea47a6d59dc2b10b2138bf35ed412ef60d42de93c /common/av_common.c
parentc94ede9e6224004d21178c00aa7a3d9f664f0fed (diff)
downloadmpv-e285e2214333e7d625fb5bac3022c3cfb57b7f1e.tar.bz2
mpv-e285e2214333e7d625fb5bac3022c3cfb57b7f1e.tar.xz
Use AV_INPUT_BUFFER_PADDING_SIZE instead of deprecated one
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'common/av_common.c')
-rw-r--r--common/av_common.c4
1 files changed, 2 insertions, 2 deletions
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;