ffmpeg: dont match unspecified media types in MATCH_PER_TYPE_OPT
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Sep 2012 16:56:10 +0000 (18:56 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Sep 2012 16:56:10 +0000 (18:56 +0200)
This would change existing behavior, and should if done, done seperately.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg_opt.c

index dc89e67..2e94686 100644 (file)
@@ -59,7 +59,7 @@
     int i, ret;\
     for (i = 0; i < o->nb_ ## name; i++) {\
         char *spec = o->name[i].specifier;\
-        if (!strcmp(spec, mediatype) || !*spec)\
+        if (!strcmp(spec, mediatype))\
             outvar = o->name[i].u.type;\
         else if (ret < 0)\
             exit_program(1);\