Revision 57bb0da6 libavcodec/aac_parser.c

View differences:

libavcodec/aac_parser.c
32 32
{
33 33
    GetBitContext bits;
34 34
    int size, rdb, ch, sr;
35
    uint64_t tmp = be2me_64(state);
35
    uint8_t tmp[8];
36 36

  
37
    init_get_bits(&bits, ((uint8_t *)&tmp)+8-AAC_HEADER_SIZE, AAC_HEADER_SIZE * 8);
37
    AV_WB64(tmp, state);
38
    init_get_bits(&bits, tmp+8-AAC_HEADER_SIZE, AAC_HEADER_SIZE * 8);
38 39

  
39 40
    if(get_bits(&bits, 12) != 0xfff)
40 41
        return 0;

Also available in: Unified diff