From 8c2d03f07242e09428b679bf677c243462ff508a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Fri, 1 Sep 2023 08:25:32 +0200 Subject: [PATCH] Fix audio index broken for audio only files --- src/modules/avformat/producer_avformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index 98d8b6879..d4947c543 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -252,7 +252,7 @@ mlt_producer producer_avformat_init(mlt_profile profile, const char *service, ch } else if (self->seekable) { mlt_properties_set_int(properties, "astream", - relative_stream_index(self->video_format, + relative_stream_index(self->audio_format, AVMEDIA_TYPE_AUDIO, self->audio_index)); mlt_properties_set_int(properties,