[FFmpeg-devel] [RFC] Public API for RC4 and DES

Marc Mason mpeg.blue
Mon Feb 2 10:39:22 CET 2009


Michael Niedermayer wrote:

> Reimar D?ffinger wrote:
> 
>> +    rc4 = av_malloc(av_rc4_size);
> 
> uint8_t rc4v[av_rc4_size];
> struct AVRC4 *rc4= (void*)rc4v;

Because allocation on the stack is expected to be faster than allocation 
on the heap?

Would it make sense to use platform-dependent routines, such as alloca?

-- 
Regards.




More information about the ffmpeg-devel mailing list