[FFmpeg-devel] [PATCH 2/2] ffplay: increase MIN_FRAMES to 25

Marton Balint cus at passwd.hu
Sat Aug 8 22:07:00 CEST 2015


FFplay was using a 5 frame packet buffer, this is not much (e.g. 200 ms for
25fps video), when HLS is requesting a new segment via HTTP, it may take longer
for the request to complete.

Should fix ticket #4720.

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

diff --git a/ffplay.c b/ffplay.c
index 6f28694..726600e 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -66,7 +66,7 @@ const char program_name[] = "ffplay";
 const int program_birth_year = 2003;
 
 #define MAX_QUEUE_SIZE (15 * 1024 * 1024)
-#define MIN_FRAMES 5
+#define MIN_FRAMES 25
 #define EXTERNAL_CLOCK_MIN_FRAMES 2
 #define EXTERNAL_CLOCK_MAX_FRAMES 10
 
-- 
2.1.4



More information about the ffmpeg-devel mailing list