[FFmpeg-devel] [PATCH] h264: rbsp de-escape and data partitioning..

Thorsten Jordan tjordan
Wed Jun 20 11:58:30 CEST 2007

M?ns Rullg?rd schrieb:
> Andreas ?man wrote:
>> Hi
>>> i think the "? 1 : 0" is not needed
>> They are not indeed, but i tend to keep such things in for
>> clarity
> I keep them out for clarity.  If you don't think it's clear without them,
> go back and read your K&R once more.
hey, no reason to be rough, i agree with Andreas.
Here a boolean value is mixed with integer (index).
It is indeed more cleare to write the "? 1 : 0" thing.
This may be ok for C but its not really "human readable" on first glance.
The compiler can optimize it anyway.

Best regards, Thorsten

More information about the ffmpeg-devel mailing list