[FFmpeg-devel] [PATCH 4/8] avformat/movenc-test: correct varargs usage

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Dec 4 15:39:39 CET 2015


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

Fixes: CID 1341583.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
 libavformat/movenc-test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/movenc-test.c b/libavformat/movenc-test.c
index d494e41..957ae69 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__)
-- 
2.6.3



More information about the ffmpeg-devel mailing list