[FFmpeg-devel] [Patch] Fix for static leaks in h264.c

Michael Niedermayer michaelni
Sun Jun 29 14:57:06 CEST 2008

On Sun, Jun 29, 2008 at 01:34:19PM +0100, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> > Iam fine with the patch in principle but not the do/while(). I do not like
> > do-whiled macros.
> Why not?  They are usually considered a Good Thing (tm).

Yes i know, i just find them ugly and think thei uglyness outweights their


would fail without the do/while


would work

Maybe its just me but, i feel that the idea that any macro should behave
exactly like a function is the problem ...
Of course for macros which do look like functions i agree that the do/while
should be added, but anything written in all upper case does not look like
a function.

All just IMHO, iam not strongly objecting do/while if more people want
them than not.

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080629/ed4fd72f/attachment.pgp>

More information about the ffmpeg-devel mailing list