[FFmpeg-devel] FATE & Regressions (and PPC is broken)
Måns Rullgård
mans
Thu Mar 13 03:21:57 CET 2008
Mike Melanson <mike at multimedia.cx> writes:
> Michael Niedermayer wrote:
>> Someone posted something about FFV1 and ICC on the list ...
>> IIRC there was an issue with variable length arrays and the way they
>> are memset()
>> Actually iam not completely sure if that is C standard compliant,
>> if someone knows dont hesitate to speak up ...
>
> Are you talking about sequences like this?
>
> int_fast16_t sample_buffer[3][ring_size][w+6], *sample[3][ring_size];
> [...]
> memset(sample_buffer, 0, sizeof(sample_buffer));
The C99 standard is states clearly that sizeof applied to
variable-length arrays yields the size of the array in bytes,
computed at runtime.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list