[Ffmpeg-devel] RFC : alac cleanning
Måns Rullgård
mru
Fri May 26 00:16:09 CEST 2006
Matti Hamalainen <mhamalai at students.oamk.fi> writes:
> On Thu, 25 May 2006, matthieu castet wrote:
>
>> Hi,
> ...
>> I attach a update version of my patch.
>>
>
> + for (chan = 0; chan < MAX_CHANNELS; chan++) {
> + alac->predicterror_buffer[chan] = av_malloc(alac->setinfo_max_samples_per_frame * 4);
>
> Why not * sizeof(int32_t) or such instead of * 4?
Better yet, sizeof(*alac->predicterror_buffer[0]).
--
M?ns Rullg?rd
mru at inprovide.com
More information about the ffmpeg-devel
mailing list