Revision 7e2ef1b9

View differences:

libavcodec/mlp_parser.c
176 176

  
177 177
        for (i = 0; i < buf_size; i++) {
178 178
            mp->pc.state = (mp->pc.state << 8) | buf[i];
179
            if ((mp->pc.state & 0xfffffffe) == 0xf8726fba) {
179
            if ((mp->pc.state & 0xfffffffe) == 0xf8726fba &&
180
                // ignore if we do not have the data for the start of header
181
                mp->pc.index + i >= 7) {
180 182
                mp->in_sync = 1;
181 183
                mp->bytes_left = 0;
182 184
                break;

Also available in: Unified diff