summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2006-09-08 14:21:57 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-09-08 14:21:57 +0000
commit8e16b25cc1122c8c643fd94774d537b36bfbbce6 (patch)
tree6b318cd386798deb89d9fa4f8756d9c4042b2911 /ffmpeg.c
parentec1b10f4b9aa4f775d4c4286361e7de37c418797 (diff)
downloadffmpeg-streaming-8e16b25cc1122c8c643fd94774d537b36bfbbce6.zip
ffmpeg-streaming-8e16b25cc1122c8c643fd94774d537b36bfbbce6.tar.gz
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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index bcee2b3..752125c 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 = &params;
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; 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;
OpenPOWER on IntegriCloud