[FFmpeg-devel] [PATCH 0/2] Fix strict aliasing violations in AAC and AC3 parsers
Michael Niedermayer
michaelni
Wed Dec 17 03:17:05 CET 2008
On Wed, Dec 17, 2008 at 01:42:25AM +0000, M?ns Rullg?rd wrote:
> M?ns Rullg?rd <mans at mansr.com> writes:
>
> > Michael Niedermayer <michaelni at gmx.at> writes:
> >
> >> On Sun, Dec 14, 2008 at 08:53:16PM +0000, Mans Rullgard wrote:
> >>> The AAC and AC3 parsers both violate strict aliasing rules when using
> >>> a uint64_t variable as buffer for the bitstream reader. Although I am
> >>> not entirely certain of the strict validity of these patches, they are
> >>> sufficient to make gcc do the right thing, and they can't make things
> >>> any worse.
> >>>
> >>> Please comment.
> >>
> >> ive no objections to these patches, though personally id rather add
> >> -fno-strict-aliasing to the flags of these 2 files ...
> >
> > I'd rather have correct code than rely on compiler flags altering the
> > semantics of the language.
>
> So is it OK to apply these patches. They fix things that are broken
> right now.
yes its ok to apply them, i thought that was clear from my comment.
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- 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/20081217/18ca9dd8/attachment.pgp>
More information about the ffmpeg-devel
mailing list