Ticket #7827: muxing.patch

File muxing.patch, 1014 bytes (added by pbelkner, 7 years ago)
Line 
1*** ./ffmpeg/doc/examples/muxing.c 2019-04-01 15:45:38.000000000 +0200
2--- ./muxing.c 2019-04-03 07:28:50.000000000 +0200
3***************
4*** 49,54 ****
5--- 49,56 ----
6
7 #define SCALE_FLAGS SWS_BICUBIC
8
9+ #define MUX_MATROSKA_FLAC
10+
11 // a wrapper around a single output AVStream
12 typedef struct OutputStream {
13 AVStream *st;
14***************
15*** 600,606 ****
16 encode_video = 1;
17 }
18 if (fmt->audio_codec != AV_CODEC_ID_NONE) {
19! add_stream(&audio_st, oc, &audio_codec, fmt->audio_codec);
20 have_audio = 1;
21 encode_audio = 1;
22 }
23--- 602,613 ----
24 encode_video = 1;
25 }
26 if (fmt->audio_codec != AV_CODEC_ID_NONE) {
27! #if defined (MUX_MATROSKA_FLAC) // [
28! if (!strcmp("matroska",fmt->name))
29! add_stream(&audio_st, oc, &audio_codec, AV_CODEC_ID_FLAC);
30! else
31! #endif // ]
32! add_stream(&audio_st, oc, &audio_codec, fmt->audio_codec);
33 have_audio = 1;
34 encode_audio = 1;
35 }