avformat/movenc-test: correct varargs usage

It is required to call va_end for each invocation of va_start within the
same function.

Fixes: CID 1341583.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
pull/164/head
Ganesh Ajjanagadde 9 years ago
parent 90409b6da8
commit f1f323b6de
  1. 1
      libavformat/movenc-test.c

@ -137,6 +137,7 @@ static void check_func(int value, int line, const char *msg, ...)
vprintf(msg, ap);
printf("\n");
check_faults++;
va_end(ap);
}
}
#define check(value, ...) check_func(value, __LINE__, __VA_ARGS__)

Loading…
Cancel
Save