mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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>
This commit is contained in:
parent
90409b6da8
commit
f1f323b6de
@ -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…
Reference in New Issue
Block a user