[FFmpeg-devel] [PATCH] libavcodec/lpc.c: Fix warning about uninitialized variable

Patrik Kullman patrik
Tue Feb 10 10:00:14 CET 2009

On Tue, 2009-02-10 at 14:14 +0530, Jai Menon wrote:

> since a use_lpc of 0 was never intended, maybe an assert could be used....

Ok, I assume that a use_lpc of less than 0 isn't intended either, so
this updated patch asserts use_lpc > 0 and therefore invalidates the
(still present) gcc warning.

Use av_uninit() macro.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-lpc-uninit-weight.patch
Type: text/x-patch
Size: 779 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090210/9a817cbd/attachment.bin>

More information about the ffmpeg-devel mailing list