From 65c2f022fd4167694ecd18a6a2bca8fbaa9f19aa Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 13 Nov 2024 20:19:46 -0800 Subject: [PATCH] fix crash in mix transition with consumer producer See https://forum.shotcut.org/t/adding-to-timeline-a-mlt-as-a-clip-with- different-fps-crashes-shotcut/46418 --- src/modules/avformat/filter_swresample.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/avformat/filter_swresample.c b/src/modules/avformat/filter_swresample.c index 2239bdbaa..662f53248 100644 --- a/src/modules/avformat/filter_swresample.c +++ b/src/modules/avformat/filter_swresample.c @@ -64,7 +64,8 @@ static int filter_get_audio(mlt_frame frame, } if (in.samples == 0) { - // Noting to convert. + // Nothing to convert. + *samples = 0; return error; }