BUG: Bug in ffmpeg_avcodec_log
Received by email from Alain Guidez
I have seen a bug in ffmpeg.c and ffmepg.h so I send you the diff files in order to correct it.
for ffmpeg.c
646c646
< void ffmpeg_avcodec_log(void *ignoreme ATTRIBUTE_UNUSED, int errno_flag,
const char *fmt, ...)
---
> void ffmpeg_avcodec_log(void *ignoreme ATTRIBUTE_UNUSED, int errno_flag,
const char *fmt, va_list vl)
649d648
< va_list ap;
654,656d652
< /* Get the message from the argument list passed in */
< va_start(ap, fmt);
<
658c654
< vsnprintf(buf, sizeof(buf), fmt, ap);
---
> vsnprintf(buf, sizeof(buf), fmt, vl);
663,664d658
< /* Clean up the argument list routine */
< va_end(ap);
and for ffmpeg.h
73c73
< void ffmpeg_avcodec_log(void *, int, const char *, ...);
---
> void ffmpeg_avcodec_log(void *, int, const char *, va_list);
Environment
Motion version: |
3.2.7 |
ffmpeg version: |
|
Shared libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
|
--
KennethLavrsen - 25 Mar 2007
Follow up
Kenneth Lavrsen is checking in the fix on SVN
Fix record
Fix in above patch