You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
doc/examples/muxing: Add support to pass flags to muxer as since codecpar the codec flags are not available to the muxer anymore
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -565,6 +565,7 @@ int main(int argc, char **argv)
|
|||||||
int have_video = 0, have_audio = 0;
|
int have_video = 0, have_audio = 0;
|
||||||
int encode_video = 0, encode_audio = 0;
|
int encode_video = 0, encode_audio = 0;
|
||||||
AVDictionary *opt = NULL;
|
AVDictionary *opt = NULL;
|
||||||
|
int i;
|
||||||
|
|
||||||
/* Initialize libavcodec, and register all codecs and formats. */
|
/* Initialize libavcodec, and register all codecs and formats. */
|
||||||
av_register_all();
|
av_register_all();
|
||||||
@@ -581,8 +582,9 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
filename = argv[1];
|
filename = argv[1];
|
||||||
if (argc > 3 && !strcmp(argv[2], "-flags")) {
|
for (i = 2; i+1 < argc; i+=2) {
|
||||||
av_dict_set(&opt, argv[2]+1, argv[3], 0);
|
if (!strcmp(argv[i], "-flags") || !strcmp(argv[i], "-fflags"))
|
||||||
|
av_dict_set(&opt, argv[i]+1, argv[i+1], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* allocate the output media context */
|
/* allocate the output media context */
|
||||||
|
Reference in New Issue
Block a user