[FFmpeg-cvslog] r14136 - trunk/ffmpeg.c

michael subversion
Wed Jul 9 08:56:26 CEST 2008


Author: michael
Date: Wed Jul  9 08:56:26 2008
New Revision: 14136

Log:
Allow setting codecs through preset files


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Wed Jul  9 08:56:26 2008
@@ -3639,6 +3639,13 @@ static int opt_preset(const char *opt, c
             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);
     }
 




More information about the ffmpeg-cvslog mailing list