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);