summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 46455c1982..77985f30b7 100644
--- a/ffmpeg.c
+++ b/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);
}