Revision 90f5e991

View differences:

libavformat/mpegts.c
1468 1468
    if (len != sizeof(buf))
1469 1469
        goto fail;
1470 1470
    ts->raw_packet_size = get_packet_size(buf, sizeof(buf));
1471
    if (ts->raw_packet_size <= 0)
1472
        goto fail;
1471
    if (ts->raw_packet_size <= 0) {
1472
        av_log(s, AV_LOG_WARNING, "Could not detect TS packet size, defaulting to non-FEC/DVHS\n");
1473
        ts->raw_packet_size = TS_PACKET_SIZE;
1474
    }
1473 1475
    ts->stream = s;
1474 1476
    ts->auto_guess = 0;
1475 1477

  

Also available in: Unified diff