[FFmpeg-devel] [PATCH] Escape 124 (RPL) decoder rev5

Måns Rullgård mans
Mon Mar 31 17:37:33 CEST 2008


Mike Melanson wrote:
> M?ns Rullg?rd wrote:
>> Mike Melanson wrote:
>>> Robert Swain wrote:
>>>> On 30/03/2008, Michael Niedermayer <michaelni at gmx.at> wrote:
>>>>> On Sat, Mar 29, 2008 at 08:38:02PM -0700, Eli Friedman wrote:
>>>>>  > Per subject, fifth revision of Escape 124 decoder.
>>>>>
>>>>> looks ok
>>>> Applied.
>>> This breaks compilation under gcc 2.95.3. The offending line is the
>>> blocks member of the CodeBook structure:
>>>
>>> typedef struct CodeBook {
>>>     unsigned depth;
>>>     unsigned size;
>>>     MacroBlock blocks[];
>>> } CodeBook;
>>>
>>> The error is: "field `blocks' has incomplete type".
>>
>> For the record, this is valid C99, but not C90.
>
> Acknowledged. But how will we go about changing the code so that it will
> compile on gcc 2.95.3/x86_32, which is still classified as a supported
> configuration?

Declare the array as size 1, and adjust the malloc() call accordingly.

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




More information about the ffmpeg-devel mailing list