Commit f0111f57 authored by michael's avatar michael

Allow setting codecs through preset files


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14136 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ade621d6
...@@ -3639,6 +3639,13 @@ static int opt_preset(const char *opt, const char *arg) ...@@ -3639,6 +3639,13 @@ static int opt_preset(const char *opt, const char *arg)
fprintf(stderr, "Preset file invalid\n"); fprintf(stderr, "Preset file invalid\n");
av_exit(1); av_exit(1);
} }
if(!strcmp(tmp, "acodec")){
opt_audio_codec(tmp2);
}else if(!strcmp(tmp, "vcodec")){
opt_video_codec(tmp2);
}else if(!strcmp(tmp, "scodec")){
opt_subtitle_codec(tmp2);
}else
opt_default(tmp, tmp2); opt_default(tmp, tmp2);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment