Revision e006d71f

View differences:

libavformat/mpegts.c
1350 1350
    for(;;) {
1351 1351
        len = avio_read(pb, buf, TS_PACKET_SIZE);
1352 1352
        if (len != TS_PACKET_SIZE)
1353
            return AVERROR(EIO);
1353
            return len < 0 ? len : AVERROR_EOF;
1354 1354
        /* check paquet sync byte */
1355 1355
        if (buf[0] != 0x47) {
1356 1356
            /* find a new packet start */

Also available in: Unified diff