OSDN Git Service

ffmpeg: use opt_acodec when setting audio codec in opt_target.
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 4 Jun 2011 02:52:27 +0000 (19:52 -0700)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 4 Jun 2011 02:52:59 +0000 (19:52 -0700)
ffmpeg.c

index 35436aa..34e6104 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4180,7 +4180,7 @@ static int opt_target(const char *opt, const char *arg)
 
     if(!strcmp(arg, "vcd")) {
         opt_codec("vcodec", "mpeg1video");
-        opt_codec("vcodec", "mp2");
+        opt_codec("acodec", "mp2");
         opt_format("f", "vcd");
 
         opt_frame_size("s", norm == PAL ? "352x288" : "352x240");
@@ -4230,7 +4230,7 @@ static int opt_target(const char *opt, const char *arg)
     } else if(!strcmp(arg, "dvd")) {
 
         opt_codec("vcodec", "mpeg2video");
-        opt_codec("vcodec", "ac3");
+        opt_codec("acodec", "ac3");
         opt_format("f", "dvd");
 
         opt_frame_size("vcodec", norm == PAL ? "720x576" : "720x480");