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/encavcodecaudio.c | |
parent | c576eb99926c0cb2bc60a45be744ca21b06eb77e (diff) |
fix use of deprecated libav defines
Fixes https://github.com/HandBrake/HandBrake/issues/815
Diffstat (limited to 'libhb/encavcodecaudio.c')
-rw-r--r-- | libhb/encavcodecaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c index 5f95c7383..ad3f7e3f7 100644 --- a/libhb/encavcodecaudio.c +++ b/libhb/encavcodecaudio.c @@ -178,7 +178,7 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job) else if (audio->config.out.quality >= 0) { context->global_quality = audio->config.out.quality * FF_QP2LAMBDA; - context->flags |= CODEC_FLAG_QSCALE; + context->flags |= AV_CODEC_FLAG_QSCALE; if (audio->config.out.codec == HB_ACODEC_FDK_AAC || audio->config.out.codec == HB_ACODEC_FDK_HAAC) { @@ -197,7 +197,7 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job) // so that it fills extradata with global header information. // If this flag is not set, it inserts the data into each // packet instead. - context->flags |= CODEC_FLAG_GLOBAL_HEADER; + context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; if (hb_avcodec_open(context, codec, &av_opts, 0)) { |