OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7445f9c
)
Allow setting codecs through preset files
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 9 Jul 2008 06:56:26 +0000
(06:56 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 9 Jul 2008 06:56:26 +0000
(06:56 +0000)
Originally committed as revision 14136 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
46455c1
..
77985f3
100644
(file)
--- 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);
}