Revision e0560448

View differences:

libavcodec/h263.c
4648 4648
    int time_incr, time_increment;
4649 4649

  
4650 4650
    s->pict_type = get_bits(gb, 2) + I_TYPE;	/* pict type: I = 0 , P = 1 */
4651
    if(s->pict_type==B_TYPE && s->low_delay && s->vol_control_parameters==0){
4651
    if(s->pict_type==B_TYPE && s->low_delay && s->vol_control_parameters==0 && !(s->flags & CODEC_FLAG_LOW_DELAY)){
4652 4652
        printf("low_delay flag set, but shouldnt, clearing it\n");
4653 4653
        s->low_delay=0;
4654 4654
    }
libavcodec/mpeg12.c
1653 1653
    s->bit_rate = ((s->bit_rate / 400) | (bit_rate_ext << 12)) * 400;
1654 1654
    skip_bits1(&s->gb); /* marker */
1655 1655
    vbv_buf_ext = get_bits(&s->gb, 8);
1656

  
1656 1657
    s->low_delay = get_bits1(&s->gb);
1658
    if(s->flags & CODEC_FLAG_LOW_DELAY) s->low_delay=1;
1659

  
1657 1660
    frame_rate_ext_n = get_bits(&s->gb, 2);
1658 1661
    frame_rate_ext_d = get_bits(&s->gb, 5);
1659 1662
    av_reduce(

Also available in: Unified diff