avconv: fix parsing metadata specifiers.
authorAnton Khirnov <anton@khirnov.net>
Mon, 5 Sep 2011 09:39:09 +0000 (11:39 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 5 Sep 2011 10:11:10 +0000 (12:11 +0200)
After 039267f192f335144d9251e6f05a1513dd1e8ef1, metadata specifiers are
passed without the leading ':'. Remove a ++ that didn't take this into
account.

avconv.c

index d941e69..09d4886 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -2730,7 +2730,7 @@ static int opt_map(OptionsContext *o, const char *opt, const char *arg)
 static void parse_meta_type(char *arg, char *type, int *index)
 {
     if (*arg) {
-        *type = *(++arg);
+        *type = *arg;
         switch (*arg) {
         case 'g':
             break;