Commit f15af35a authored by mru's avatar mru

aac_parser: fix strict aliasing violation

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15595 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5aa6cc27
......@@ -32,9 +32,10 @@ static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info,
{
GetBitContext bits;
int size, rdb, ch, sr;
uint64_t tmp = be2me_64(state);
uint8_t tmp[8];
init_get_bits(&bits, ((uint8_t *)&tmp)+8-AAC_HEADER_SIZE, AAC_HEADER_SIZE * 8);
AV_WB64(tmp, state);
init_get_bits(&bits, tmp+8-AAC_HEADER_SIZE, AAC_HEADER_SIZE * 8);
if(get_bits(&bits, 12) != 0xfff)
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment