From 8e16b25cc1122c8c643fd94774d537b36bfbbce6 Mon Sep 17 00:00:00 2001 From: Panagiotis Issaris Date: Fri, 8 Sep 2006 14:21:57 +0000 Subject: [PATCH] enables AVOption for muxing. Patch by Takis Original thread: Date: Sep 8, 2006 10:58 AM Subject: [Ffmpeg-devel] [PATCH] Enable AVOption for muxers Originally committed as revision 6197 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index bcee2b3bef..752125ca2a 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3310,7 +3310,7 @@ static void opt_new_video_stream(void) static void opt_output_file(const char *filename) { AVFormatContext *oc; - int use_video, use_audio, input_has_video, input_has_audio; + int use_video, use_audio, input_has_video, input_has_audio, i; AVFormatParameters params, *ap = ¶ms; if (!strcmp(filename, "-")) @@ -3442,6 +3442,13 @@ static void opt_output_file(const char *filename) oc->max_delay= (int)(mux_max_delay*AV_TIME_BASE); oc->loop_output = loop_output; + for(i=0; iflags&AV_OPT_FLAG_ENCODING_PARAM)) + av_set_double(oc, opt_names[i], d); + } + /* reset some options */ file_oformat = NULL; file_iformat = NULL;