diff options
author | wang-bin <wbsecg1@gmail.com> | 2017-02-08 22:08:49 +0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-08 16:55:16 +0100 |
commit | e285e2214333e7d625fb5bac3022c3cfb57b7f1e (patch) | |
tree | a47a6d59dc2b10b2138bf35ed412ef60d42de93c /demux | |
parent | c94ede9e6224004d21178c00aa7a3d9f664f0fed (diff) |
Use AV_INPUT_BUFFER_PADDING_SIZE instead of deprecated one
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_lavf.c | 2 | ||||
-rw-r--r-- | demux/packet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 1cfbdb16cd..46a2f558af 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -397,7 +397,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check) // Disable file-extension matching with normal checks .filename = check <= DEMUX_CHECK_REQUEST ? priv->filename : "", .buf_size = 0, - .buf = av_mallocz(PROBE_BUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE), + .buf = av_mallocz(PROBE_BUF_SIZE + AV_INPUT_BUFFER_PADDING_SIZE), }; if (!avpd.buf) return -1; diff --git a/demux/packet.c b/demux/packet.c index 4ee9253ebf..47f0cb87dc 100644 --- a/demux/packet.c +++ b/demux/packet.c @@ -94,7 +94,7 @@ void demux_packet_shorten(struct demux_packet *dp, size_t len) { assert(len <= dp->len); dp->len = len; - memset(dp->buffer + dp->len, 0, FF_INPUT_BUFFER_PADDING_SIZE); + memset(dp->buffer + dp->len, 0, AV_INPUT_BUFFER_PADDING_SIZE); } void free_demux_packet(struct demux_packet *dp) |