[Ffmpeg-cvslog] r6197 - trunk/ffmpeg.c

gpoirier subversion
Fri Sep 8 16:21:57 CEST 2006


Author: gpoirier
Date: Fri Sep  8 16:21:57 2006
New Revision: 6197

Modified:
   trunk/ffmpeg.c

Log:
enables AVOption for muxing.
Patch by Takis
Original thread:
Date: Sep 8, 2006 10:58 AM
Subject: [Ffmpeg-devel] [PATCH] Enable AVOption for muxers


Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Fri Sep  8 16:21:57 2006
@@ -3310,7 +3310,7 @@
 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 @@
     oc->max_delay= (int)(mux_max_delay*AV_TIME_BASE);
     oc->loop_output = loop_output;
 
+    for(i=0; i<opt_name_count; i++){
+        AVOption *opt;
+        double d = av_get_double(avformat_opts, opt_names[i], &opt);
+        if(d==d && (opt->flags&AV_OPT_FLAG_ENCODING_PARAM))
+            av_set_double(oc, opt_names[i], d);
+    }
+
     /* reset some options */
     file_oformat = NULL;
     file_iformat = NULL;




More information about the ffmpeg-cvslog mailing list