[FFmpeg-devel] [PATCH 0/2] Fix strict aliasing violations in AAC and AC3 parsers

Mans Rullgard mans
Sun Dec 14 21:53:16 CET 2008

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.

Mans Rullgard (2):
  AAC: fix strict aliasing violation in parser
  AC3: fix strict aliasing violation in parser

 libavcodec/aac_parser.c |    9 ++++++---
 libavcodec/ac3_parser.c |    7 +++++--
 2 files changed, 11 insertions(+), 5 deletions(-)

More information about the ffmpeg-devel mailing list