[FFmpeg-devel] [PATCH] ffmpeg.c: Initializing uninitialized variables

Chiranjeevi Melam cmelam at rgbnetworks.com
Thu Sep 1 16:02:21 CEST 2011

Most of these variables are set in static void do_audio_out(AVFormatContext *s,

If ffmpeg_exit() is called prior to calling do_audio_out, then it might try to do a free on an uninitialized variable. So the Changes  we made fixed the issue.

-----Original Message-----
From: ffmpeg-devel-bounces at ffmpeg.org [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of Clément Bœsch
Sent: Wednesday, August 31, 2011 10:28 AM
To: FFmpeg development discussions and patches
Subject: Re: [FFmpeg-devel] [PATCH] ffmpeg.c: Initializing uninitialized variables

On Wed, Aug 31, 2011 at 03:25:07PM +0000, Chiranjeevi Melam wrote:
> Hi,
> Initializing uninitialized variables and assigning NULL pointer   in ffmpeg.c

Static and globals don't need to be initialized in C.

Clément B.

More information about the ffmpeg-devel mailing list