From 68fc3b5120876150bf5760220367ae27daa16d96 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 31 Aug 2017 14:17:25 -0500 Subject: [PATCH] FS-10503 return causes break on first loop and can cause buildup in buffer --- src/mod/applications/mod_av/avformat.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index 03b9054381..2fc3459f12 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -1915,7 +1915,6 @@ GCC_DIAG_ON(deprecated-declarations) switch_core_timer_init(&context->audio_timer, "soft", 1, handle->samplerate / 1000, context->pool); } - while ((inuse = switch_buffer_inuse(context->audio_buffer)) >= bytes) { AVPacket pkt[2] = { {0} }; int got_packet[2] = {0}; @@ -2025,10 +2024,6 @@ GCC_DIAG_ON(deprecated-declarations) } } } - - if (data) { - break; - } } end: