]> granicus.if.org Git - handbrake/commitdiff
fix another use of deprecated libav define
authorJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 6 Jul 2017 18:42:25 +0000 (11:42 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 6 Jul 2017 18:42:25 +0000 (11:42 -0700)
libhb/encavcodecaudio.c

index ad3f7e3f7fd4e0d4574c276a640a1da66c3cd38c..e13963292c58f62acaaf41000f2e8a1600b377ef 100644 (file)
@@ -223,7 +223,7 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job)
     pv->input_buf         = malloc(pv->input_samples * sizeof(float));
     // Some encoders in libav (e.g. fdk-aac) fail if the output buffer
     // size is not some minumum value.  8K seems to be enough :(
-    pv->max_output_bytes  = MAX(FF_MIN_BUFFER_SIZE,
+    pv->max_output_bytes  = MAX(AV_INPUT_BUFFER_MIN_SIZE,
                                 (pv->input_samples *
                                  av_get_bytes_per_sample(context->sample_fmt)));