[FFmpeg-devel] [PATCH] Some ra144.c simplifications

Stefan Gehrer stefan.gehrer
Sun Jun 22 11:52:11 CEST 2008


Michael Niedermayer wrote:
> On Sat, Jun 21, 2008 at 07:53:09AM +0200, Vitor Sessak wrote:

>>
>>     memcpy(work, statbuf,20);
> 
> 10*sizeof(int16_t)

I am curious about this. I would think we can guarantee that
sizeof(int16_t) is always two. So the change would only have
the advantage of better readability ("number of elements *
size of elements" instead of total size).
Am I right, or is there another advantage I don't see?

Stefan




More information about the ffmpeg-devel mailing list