ffmpeg: fix 10l (use of uninitilaized variable)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
release/1.0
Michael Niedermayer 12 years ago
parent 374033ee93
commit eb949544ca
  1. 4
      ffmpeg_opt.c

@ -56,13 +56,11 @@
#define MATCH_PER_TYPE_OPT(name, type, outvar, fmtctx, mediatype)\ #define MATCH_PER_TYPE_OPT(name, type, outvar, fmtctx, mediatype)\
{\ {\
int i, ret;\ int i;\
for (i = 0; i < o->nb_ ## name; i++) {\ for (i = 0; i < o->nb_ ## name; i++) {\
char *spec = o->name[i].specifier;\ char *spec = o->name[i].specifier;\
if (!strcmp(spec, mediatype))\ if (!strcmp(spec, mediatype))\
outvar = o->name[i].u.type;\ outvar = o->name[i].u.type;\
else if (ret < 0)\
exit_program(1);\
}\ }\
} }
char *vstats_filename; char *vstats_filename;

Loading…
Cancel
Save