Revision 6c414bb6

View differences:

libavcodec/ac3_parser.c
158 158
        int *need_next_header, int *new_frame_start)
159 159
{
160 160
    int err;
161
    uint64_t tmp = be2me_64(state);
161
    union {
162
        uint64_t u64;
163
        uint8_t  u8[8];
164
    } tmp = { be2me_64(state) };
162 165
    AC3HeaderInfo hdr;
163 166
    GetBitContext gbc;
164 167

  
165
    init_get_bits(&gbc, ((uint8_t *)&tmp)+8-AC3_HEADER_SIZE, 54);
168
    init_get_bits(&gbc, tmp.u8+8-AC3_HEADER_SIZE, 54);
166 169
    err = ff_ac3_parse_header(&gbc, &hdr);
167 170

  
168 171
    if(err < 0)

Also available in: Unified diff