1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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>
This commit is contained in:
Michael Niedermayer 2012-09-22 18:56:10 +02:00
parent 3db4c88ac1
commit a4271f3d4e

View 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);\