From b609f1ce28705b1fc630e21a4277657a90744665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Rom=C3=A1n=20N=C3=BA=C3=B1ez?= Date: Mon, 13 May 2024 07:08:38 +0200 Subject: [PATCH] Fix crash on videos with audio --- ffmpeg_video_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg_video_stream.cpp b/ffmpeg_video_stream.cpp index 1ac6c08..dffe709 100644 --- a/ffmpeg_video_stream.cpp +++ b/ffmpeg_video_stream.cpp @@ -245,7 +245,7 @@ void FFmpegVideoStreamPlayback::update_internal(double p_delta) { List>::Element *next_audio_frame = available_audio_frames.front(); while (next_audio_frame && check_next_audio_frame_valid(next_audio_frame->get())) { ZoneNamedN(__audio_mix, "Audio mix", true); - Ref audio_frame = next_frame->get(); + Ref audio_frame = next_audio_frame->get(); int sample_count = audio_frame->get_sample_data().size() / decoder->get_audio_channel_count(); #ifdef GDEXTENSION mix_audio(sample_count, audio_frame->get_sample_data(), 0);