diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-03-31 17:33:48 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-23 11:53:19 +0200 |
commit | 2d924b3a630869c65fe0c76568910500f54ed057 (patch) | |
tree | 046e6484309205ca7715ec0a66e5b77732cf536b /fftools/ffmpeg_opt.c | |
parent | 37c764df6730e8299c468dd7636c45da6e158ef3 (diff) | |
download | ffmpeg-2d924b3a630869c65fe0c76568910500f54ed057.tar.gz |
fftools/ffmpeg: move each muxer to a separate thread
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r-- | fftools/ffmpeg_opt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 01eedbeb34..8ac73c0efc 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -3116,7 +3116,7 @@ loop_end: of->nb_streams = oc->nb_streams; of->url = filename; - err = of_muxer_init(of, oc, format_opts, o->limit_filesize); + err = of_muxer_init(of, oc, format_opts, o->limit_filesize, o->thread_queue_size); if (err < 0) { av_log(NULL, AV_LOG_FATAL, "Error initializing internal muxing state\n"); exit_program(1); @@ -3907,7 +3907,7 @@ const OptionDef options[] = { { "disposition", OPT_STRING | HAS_ARG | OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(disposition) }, "disposition", "" }, - { "thread_queue_size", HAS_ARG | OPT_INT | OPT_OFFSET | OPT_EXPERT | OPT_INPUT, + { "thread_queue_size", HAS_ARG | OPT_INT | OPT_OFFSET | OPT_EXPERT | OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(thread_queue_size) }, "set the maximum number of queued packets from the demuxer" }, { "find_stream_info", OPT_BOOL | OPT_PERFILE | OPT_INPUT | OPT_EXPERT, { &find_stream_info }, |