mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 10:43:15 +00:00
Allow setting codecs through preset files
Originally committed as revision 14136 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7445f9cc67
commit
385b19dfd4
7
ffmpeg.c
7
ffmpeg.c
@ -3639,6 +3639,13 @@ static int opt_preset(const char *opt, const char *arg)
|
||||
fprintf(stderr, "Preset file invalid\n");
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user