Motion - Bug Report 2007x 03x 25x 074612

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
Topic revision: r2 - 21 Feb 2008, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.