[FFmpeg-devel] [PATCH] remove useless mm.c close function

Reimar Döffinger Reimar.Doeffinger
Sun Aug 24 18:13:54 CEST 2008


On Sun, Aug 24, 2008 at 04:50:01PM +0200, Michael Niedermayer wrote:
> Its not really specific to macros ...
> And i do not know if this specific case is good or bad ...
> I simply do not find
> sizeof(array) / sizeof(array[0])
> particularely ugly ...

The reason I am suggesting it is because it is not used consistently.
Sometimes it is "sizeof(array) / sizeof(array[0])", sometimes
"sizeof(array) / sizeof(*array)", sometimes "sizeof(array) /
sizeof(char *)" and sometimes just "5".

Greetings,
Reimar D?ffinger




More information about the ffmpeg-devel mailing list