From 33d9def3b3886542e6e0b79e6cda16d4a80267a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Via=C4=8Das=C5=82a=C5=AD?= Date: Sat, 27 Jul 2024 08:14:27 +0000 Subject: [PATCH] (ffmpeg core) Fix audio buffer size (#16820) --- cores/libretro-ffmpeg/ffmpeg_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/libretro-ffmpeg/ffmpeg_core.c b/cores/libretro-ffmpeg/ffmpeg_core.c index 08bee25063e..8b95e1e9d67 100644 --- a/cores/libretro-ffmpeg/ffmpeg_core.c +++ b/cores/libretro-ffmpeg/ffmpeg_core.c @@ -615,7 +615,7 @@ void CORE_PREFIX(retro_run)(void) static bool last_l; static bool last_r; double min_pts; - int16_t audio_buffer[2048]; + int16_t audio_buffer[media.sample_rate / 20]; bool left, right, up, down, l, r; int16_t ret = 0; size_t to_read_frames = 0;