summaryrefslogtreecommitdiff
path: root/media-libs/mlt/files/mlt-6.6.0-vorbis-ffmpeg-3.4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/mlt/files/mlt-6.6.0-vorbis-ffmpeg-3.4.patch')
-rw-r--r--media-libs/mlt/files/mlt-6.6.0-vorbis-ffmpeg-3.4.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/media-libs/mlt/files/mlt-6.6.0-vorbis-ffmpeg-3.4.patch b/media-libs/mlt/files/mlt-6.6.0-vorbis-ffmpeg-3.4.patch
new file mode 100644
index 000000000000..bdf6ea211d43
--- /dev/null
+++ b/media-libs/mlt/files/mlt-6.6.0-vorbis-ffmpeg-3.4.patch
@@ -0,0 +1,29 @@
+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 );