29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
From 7e0d478d161eacea015aa3d116e250e7c5f9f942 Mon Sep 17 00:00:00 2001
|
|
From: Dan Dennedy <dan@dennedy.org>
|
|
Date: Wed, 7 Feb 2018 16:58:44 -0800
|
|
Subject: [PATCH] Fix vorbis encoding with FFmpeg v3.4+
|
|
|
|
---
|
|
src/modules/avformat/consumer_avformat.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c
|
|
index 434710049..6deb76df5 100644
|
|
--- a/src/modules/avformat/consumer_avformat.c
|
|
+++ b/src/modules/avformat/consumer_avformat.c
|
|
@@ -1,6 +1,6 @@
|
|
/*
|
|
* consumer_avformat.c -- an encoder based on avformat
|
|
- * Copyright (C) 2003-2017 Meltytech, LLC
|
|
+ * Copyright (C) 2003-2018 Meltytech, LLC
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
@@ -1647,6 +1647,7 @@ static void *consumer_thread( void *arg )
|
|
enc_ctx->audio_avframe->format = c->sample_fmt;
|
|
enc_ctx->audio_avframe->nb_samples = enc_ctx->audio_input_frame_size;
|
|
enc_ctx->audio_avframe->channel_layout = c->channel_layout;
|
|
+ enc_ctx->audio_avframe->channels = c->channels;
|
|
} else {
|
|
mlt_log_error( MLT_CONSUMER_SERVICE(consumer), "failed to allocate audio AVFrame\n" );
|
|
mlt_events_fire( properties, "consumer-fatal-error", NULL );
|