From patchwork Thu Apr 4 06:32:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Belkner X-Patchwork-Id: 12609 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 7298D449195 for ; Thu, 4 Apr 2019 09:33:00 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5F28A68ADAD; Thu, 4 Apr 2019 09:33:00 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from longisland.ops.eusc.inter.net (longisland.ops.eusc.inter.net [84.23.254.153]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EF3DF68AD93 for ; Thu, 4 Apr 2019 09:32:53 +0300 (EEST) X-Trace: 507c7062656c6b6e657240736e6166752e64657c38342e3137332e3232332e3339 7c3168427676672d3030303668672d4b707c31353534333539353733 Received: from longisland.ops.eusc.inter.net ([10.153.10.19] helo=localhost) by longisland.ops.eusc.inter.net with esmtpsa (Exim 4.92) id 1hBvvg-0006hg-Kp for ffmpeg-devel@ffmpeg.org; Thu, 04 Apr 2019 08:32:53 +0200 From: Peter Belkner To: FFmpeg development discussions and patches Message-ID: <9918cb96-3ce2-e1fa-77f1-7ac8a911170b@snafu.de> Date: Thu, 4 Apr 2019 08:32:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Language: en-US X-SA-Exim-Connect-IP: 84.173.223.39 X-SA-Exim-Mail-From: pbelkner@snafu.de X-SA-Exim-Scanned: No (on longisland.ops.eusc.inter.net); SAEximRunCond expanded to false Subject: [FFmpeg-devel] Patch for Reproducing Issue 7827 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This patch does not improve or fix something instead it is meant for easily reproducing issue 7827 (as requested, cf. https://trac.ffmpeg.org/ticket/7827). I've to admit that I don't know how to produce a patch by "git format-patch" instead it was made by "git diff > muxing.patch". diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 08da98e574..75766f497b 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -49,6 +49,8 @@ #define SCALE_FLAGS SWS_BICUBIC +#define MUX_MATROSKA_FLAC + // a wrapper around a single output AVStream typedef struct OutputStream { AVStream *st; @@ -600,7 +602,12 @@ int main(int argc, char **argv) encode_video = 1; } if (fmt->audio_codec != AV_CODEC_ID_NONE) { - add_stream(&audio_st, oc, &audio_codec, fmt->audio_codec); +#if defined (MUX_MATROSKA_FLAC) // [ + if (!strcmp("matroska",fmt->name)) + add_stream(&audio_st, oc, &audio_codec, AV_CODEC_ID_FLAC); + else +#endif // ] + add_stream(&audio_st, oc, &audio_codec, fmt->audio_codec); have_audio = 1; encode_audio = 1; }