[SCM] libav/experimental: Allow setting codecs through preset files

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:24:59 UTC 2013


The following commit has been merged in the experimental branch:
commit 385b19dfd46e6aa5a89acf6744a65b0a8211b004
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Jul 9 06:56:26 2008 +0000

    Allow setting codecs through preset files
    
    Originally committed as revision 14136 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffmpeg.c b/ffmpeg.c
index 46455c1..77985f3 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);
     }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list