diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-05-07 10:55:25 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-09 21:35:20 +0400 |
commit | 19615089a044520432b8b28e0ed555cc0195416a (patch) | |
tree | e6efa4dffeeecfa692143f730f4d5104d8be51c9 /ffmpeg.c | |
parent | 1435f2fa72b142b11e92a0c2715fd9516364e7db (diff) |
ffmpeg.c: reset avoptions after each input/output file.
This is consistent with how all the other options work.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3305,6 +3305,8 @@ static void opt_input_file(const char *filename) av_freep(&video_codec_name); av_freep(&audio_codec_name); av_freep(&subtitle_codec_name); + uninit_opts(); + init_opts(); } static void check_inputs(int *has_video_ptr, @@ -3850,6 +3852,8 @@ static void opt_output_file(const char *filename) set_context_opts(oc, avformat_opts, AV_OPT_FLAG_ENCODING_PARAM, NULL); av_freep(&forced_key_frames); + uninit_opts(); + init_opts(); } /* same option as mencoder */ |