diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-04 01:03:26 -0500 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-06 08:11:47 -0500 |
commit | f1f323b6de036588e28ee725a26b4084e94b6c57 (patch) | |
tree | 5bcd6043a93d98aea0b4a0e475ddef019a7d27ad /libavformat | |
parent | 90409b6da88b0cf17c7161b5bfffe35cb0475eec (diff) | |
download | ffmpeg-f1f323b6de036588e28ee725a26b4084e94b6c57.tar.gz |
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>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
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__) |