From f1f323b6de036588e28ee725a26b4084e94b6c57 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Fri, 4 Dec 2015 01:03:26 -0500 Subject: [PATCH] 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 Signed-off-by: Ganesh Ajjanagadde --- libavformat/movenc-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/movenc-test.c b/libavformat/movenc-test.c index d494e41e01..957ae69a3a 100644 --- a/libavformat/movenc-test.c +++ b/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__)