[FFmpeg-devel] [Patch] Fix for static leaks in h264.c

Måns Rullgård mans
Wed Jun 25 15:57:35 CEST 2008


Michael Niedermayer wrote:
> On Wed, Jun 25, 2008 at 09:14:11AM -0400, Art Clarke wrote:
> [...]
>> Agree with both of you, but Michael does point the way to a more elegant
>> solution I think.
>>
>> Attempt #2.
>>
>> - Art
>
>> Index: libavcodec/h264.c
>> ===================================================================
>> --- libavcodec/h264.c	(revision 13962)
>> +++ libavcodec/h264.c	(working copy)
>> @@ -48,14 +48,32 @@
>>   */
>>  #define DELAYED_PIC_REF 4
>>
>> +// Overallocate each table to the largest table; this wastes
>> +// a few bytes on the stack at startup, but leads to simpler
>> +// code

This is *NOT* on the stack.  Please try to use correct terminology.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list