[FFmpeg-devel] [PATCH] fix check in dyn_buf_write that gcc 4.3 optimizes away

Michael Niedermayer michaelni
Sat Oct 4 20:39:55 CEST 2008


On Sat, Oct 04, 2008 at 06:17:09PM +0200, Reimar D?ffinger wrote:
> Hello,
> newest gcc when optimizing comparisons assumes that no overflows happen,
> breaking this way of checking.
> Attached patch fixes it - I hope it to be uncontroversial since we
> already avoided relying on this kind of check in several other
> places.

id just make te var unsigned ...

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- 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/20081004/9f90b8b4/attachment.pgp>



More information about the ffmpeg-devel mailing list