From 9de0ed925bd876b880a54bdb7edd9081add81897 Mon Sep 17 00:00:00 2001 From: martii Date: Sun, 21 Jul 2013 16:11:53 +0200 Subject: [PATCH] libeplayer3/container_ffmpeg: align av_samples_alloc buffer Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/2a3a69b5a130a36ed5ff00cc2c8cef6b998cd228 Author: martii Date: 2013-07-21 (Sun, 21 Jul 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libeplayer3/container/container_ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libeplayer3/container/container_ffmpeg.c b/libeplayer3/container/container_ffmpeg.c index 4c7f85c..4031f9b 100644 --- a/libeplayer3/container/container_ffmpeg.c +++ b/libeplayer3/container/container_ffmpeg.c @@ -598,7 +598,7 @@ static void FFMPEGThread(Context_t *context) { uint8_t *output = NULL; int in_samples = decoded_frame->nb_samples; int out_samples = av_rescale_rnd(swr_get_delay(swr, c->sample_rate) + in_samples, out_sample_rate, c->sample_rate, AV_ROUND_UP); - e = av_samples_alloc(&output, NULL, 2, out_samples, AV_SAMPLE_FMT_S16, 0); + e = av_samples_alloc(&output, NULL, 2, out_samples, AV_SAMPLE_FMT_S16, 1); if (e < 0) { fprintf(stderr, "av_samples_alloc: %d\n", -e); continue;