diff options
author | John Stebbins <[email protected]> | 2017-07-06 09:15:21 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-07-06 09:15:21 -0700 |
commit | 532f067cca2113ea289282ea57e594efab5ba2a0 (patch) | |
tree | 3b47e5af51173d4d1832d40b1be7f097cce5715c /libhb/muxavformat.c | |
parent | c576eb99926c0cb2bc60a45be744ca21b06eb77e (diff) |
fix use of deprecated libav defines
Fixes https://github.com/HandBrake/HandBrake/issues/815
Diffstat (limited to 'libhb/muxavformat.c')
-rw-r--r-- | libhb/muxavformat.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index f628b9628..cad3c09de 100644 --- a/libhb/muxavformat.c +++ b/libhb/muxavformat.c @@ -219,7 +219,7 @@ static int avformatInit( hb_mux_object_t * m ) /* Taken from x264 muxers.c */ priv_size = 5 + 1 + 2 + job->config.h264.sps_length + 1 + 2 + job->config.h264.pps_length; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("H.264 extradata: malloc failure"); @@ -255,7 +255,7 @@ static int avformatInit( hb_mux_object_t * m ) if (job->config.mpeg4.length != 0) { priv_size = job->config.mpeg4.length; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("MPEG4 extradata: malloc failure"); @@ -271,7 +271,7 @@ static int avformatInit( hb_mux_object_t * m ) if (job->config.mpeg4.length != 0) { priv_size = job->config.mpeg4.length; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("MPEG2 extradata: malloc failure"); @@ -307,7 +307,7 @@ static int avformatInit( hb_mux_object_t * m ) } priv_size = size; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("Theora extradata: malloc failure"); @@ -337,7 +337,7 @@ static int avformatInit( hb_mux_object_t * m ) if (job->config.h265.headers_length > 0) { priv_size = job->config.h265.headers_length; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("H.265 extradata: malloc failure"); @@ -450,7 +450,7 @@ static int avformatInit( hb_mux_object_t * m ) } priv_size = size; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("Vorbis extradata: malloc failure"); @@ -473,7 +473,7 @@ static int avformatInit( hb_mux_object_t * m ) if (audio->priv.config.extradata.length) { priv_size = audio->priv.config.extradata.length; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("OPUS extradata: malloc failure"); @@ -491,7 +491,7 @@ static int avformatInit( hb_mux_object_t * m ) if (audio->priv.config.extradata.length) { priv_size = audio->priv.config.extradata.length; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("FLAC extradata: malloc failure"); @@ -517,7 +517,7 @@ static int avformatInit( hb_mux_object_t * m ) // // So allocate extra bytes priv_size = audio->priv.config.extradata.length; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("AAC extradata: malloc failure"); @@ -758,7 +758,7 @@ static int avformatInit( hb_mux_object_t * m ) rgb[12], rgb[13], rgb[14], rgb[15]); priv_size = len + 1; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("VOBSUB extradata: malloc failure"); @@ -791,7 +791,7 @@ static int avformatInit( hb_mux_object_t * m ) if (subtitle->extradata_size) { priv_size = subtitle->extradata_size; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("SSA extradata: malloc failure"); @@ -841,7 +841,7 @@ static int avformatInit( hb_mux_object_t * m ) properties[17] = width & 0xff; priv_size = sizeof(properties); - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("TX3G extradata: malloc failure"); @@ -898,7 +898,7 @@ static int avformatInit( hb_mux_object_t * m ) } priv_size = attachment->size; - priv_data = av_malloc(priv_size + FF_INPUT_BUFFER_PADDING_SIZE); + priv_data = av_malloc(priv_size + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { hb_error("Font extradata: malloc failure"); @@ -1448,7 +1448,7 @@ static int avformatEnd(hb_mux_object_t *m) priv_size = audio->priv.config.extradata.length; priv_data = av_realloc(st->codecpar->extradata, priv_size + - FF_INPUT_BUFFER_PADDING_SIZE); + AV_INPUT_BUFFER_PADDING_SIZE); if (priv_data == NULL) { break; |