diff options
author | Rodeo <[email protected]> | 2013-03-17 23:13:35 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-03-17 23:13:35 +0000 |
commit | 17d69968280460c2c16d2e26e0a5232bde2b2adb (patch) | |
tree | 695d5dd03e95a89db99ea9d120c33753cd9acaa4 /libhb/encavcodecaudio.c | |
parent | 02edbfbe91ed59ac8cdc7c34f99c810cecb45861 (diff) |
Use the official libavcodec minimum output buffer size via a define (currently, 16 KiB).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5335 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encavcodecaudio.c')
-rw-r--r-- | libhb/encavcodecaudio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c index 3633fed9e..e24eaca32 100644 --- a/libhb/encavcodecaudio.c +++ b/libhb/encavcodecaudio.c @@ -191,8 +191,9 @@ 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(8192, (pv->input_samples * - av_get_bytes_per_sample(context->sample_fmt))); + pv->max_output_bytes = MAX(FF_MIN_BUFFER_SIZE, + (pv->input_samples * + av_get_bytes_per_sample(context->sample_fmt))); // sample_fmt conversion if (context->sample_fmt != AV_SAMPLE_FMT_FLT) |