[FFmpeg-devel] [PATCH 4/4] ffplay: decrease max audio callbacks per second

Marton Balint cus at passwd.hu
Sat Jun 14 19:06:44 CEST 2014

Too many audio callbacks per second can cause buffer underruns especially under
load. As now we take into accound the elapsed time after an audio callback when
determining current audio clock, it is not that important to use small buffer
sizes and frequent audio callbacks, so lets remove the comment.

Signed-off-by: Marton Balint <cus at passwd.hu>
 ffplay.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index ad0d73d..3e4f216 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -67,11 +67,10 @@ const int program_birth_year = 2003;
 #define MAX_QUEUE_SIZE (15 * 1024 * 1024)
 #define MIN_FRAMES 5
-/* Minimum SDL audio buffer size, in samples. Should be small to have precise
-   A/V sync as SDL does not have hardware buffer fullness info. */
+/* Minimum SDL audio buffer size, in samples. */
 /* Calculate actual buffer size keeping in mind not cause too frequent audio callbacks */
 /* no AV sync correction is done if below the minimum AV sync threshold */

More information about the ffmpeg-devel mailing list