From 543dc087fce7473b87bbaef47a350c49f8aa3fd1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 26 Jun 2022 14:22:54 -0500 Subject: [PATCH] Increase decode buffer size to match Pi/MMAL decoders --- src/video/sdl.c | 2 +- src/video/x11.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/sdl.c b/src/video/sdl.c index 992287a..1a9d7c2 100644 --- a/src/video/sdl.c +++ b/src/video/sdl.c @@ -28,7 +28,7 @@ #include #include -#define DECODER_BUFFER_SIZE 92*1024 +#define DECODER_BUFFER_SIZE 256*1024 #define SLICES_PER_FRAME 4 static char* ffmpeg_buffer; diff --git a/src/video/x11.c b/src/video/x11.c index 13bf3f7..6c776a2 100644 --- a/src/video/x11.c +++ b/src/video/x11.c @@ -37,7 +37,7 @@ #include #include -#define DECODER_BUFFER_SIZE 92*1024 +#define DECODER_BUFFER_SIZE 256*1024 #define X11_VDPAU_ACCELERATION ENABLE_HARDWARE_ACCELERATION_1 #define X11_VAAPI_ACCELERATION ENABLE_HARDWARE_ACCELERATION_2 #define SLICES_PER_FRAME 4