Revision 1e5c667c

View differences:

libav/mpeg.c
555 555
        len -= 2;
556 556
        if (header_len > len)
557 557
            goto redo;
558
        if ((flags & 0xc0) == 0x40) {
558
        if ((flags & 0xc0) == 0x80) {
559 559
            pts = get_pts(&s->pb, -1);
560 560
            dts = pts;
561 561
            header_len -= 5;
......
590 590
        if (st->id == startcode)
591 591
            goto found;
592 592
    }
593
    /* no stream found: add a new stream */
594
    st = av_new_stream(s, startcode);
595
    if (!st) 
596
        goto skip;
597 593
    if (startcode >= 0x1e0 && startcode <= 0x1ef) {
598 594
        type = CODEC_TYPE_VIDEO;
599 595
        codec_id = CODEC_ID_MPEG1VIDEO;
......
609 605
        url_fskip(&s->pb, len);
610 606
        goto redo;
611 607
    }
608
    /* no stream found: add a new stream */
609
    st = av_new_stream(s, startcode);
610
    if (!st) 
611
        goto skip;
612 612
    st->codec.codec_type = type;
613 613
    st->codec.codec_id = codec_id;
614 614
 found:

Also available in: Unified diff