aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-22 18:56:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-22 18:56:10 +0200
commita4271f3d4e4efd749e5101aa2cefa5e483bc7989 (patch)
tree6a3f9bcae89e76e6ccaf785711181890099c73f7
parent3db4c88ac1d54381514198f0dba139be1c07d77c (diff)
downloadffmpeg-a4271f3d4e4efd749e5101aa2cefa5e483bc7989.tar.gz
ffmpeg: dont match unspecified media types in MATCH_PER_TYPE_OPT
This would change existing behavior, and should if done, done seperately. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg_opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index dc89e67dc1..2e94686894 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -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);\