Revision 6820008a

View differences:

libavcodec/ac3dec.c
1320 1320
           of the buffer, which can be caused by a damaged input stream. */
1321 1321
        if (is_swapped) {
1322 1322
            int cnt = FFMIN(buf_size, AC3_FRAME_BUFFER_SIZE) >> 1;
1323
            s->dsp.bswap16_buf(s->input_buffer, buf, cnt);
1323
            s->dsp.bswap16_buf((uint16_t *)s->input_buffer, (const uint16_t *)buf, cnt);
1324 1324
        } else
1325 1325
        memcpy(s->input_buffer, buf, FFMIN(buf_size, AC3_FRAME_BUFFER_SIZE));
1326 1326
        buf = s->input_buffer;

Also available in: Unified diff