[FFmpeg-cvslog] avformat/movenc-test: correct varargs usage

Ganesh Ajjanagadde git at videolan.org
Sun Dec 6 14:22:05 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Fri Dec  4 01:03:26 2015 -0500| [f1f323b6de036588e28ee725a26b4084e94b6c57] | committer: Ganesh Ajjanagadde

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 at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f1f323b6de036588e28ee725a26b4084e94b6c57
---

 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__)



More information about the ffmpeg-cvslog mailing list