Revision f94985d0

View differences:

libavcodec/h263.c
2584 2584
{
2585 2585
    int time_incr, startcode, state, v;
2586 2586
    int time_increment;
2587
    int vol_control=-1;
2587 2588

  
2588 2589
 redo:
2589 2590
    /* search next start code */
......
2627 2628
            skip_bits(&s->gb, 8); // par_height
2628 2629
        }
2629 2630

  
2630
        if(get_bits1(&s->gb)){ /* vol control parameter */
2631
        if(vol_control=get_bits1(&s->gb)){ /* vol control parameter */
2631 2632
            int chroma_format= get_bits(&s->gb, 2);
2632 2633
            if(chroma_format!=1){
2633 2634
                printf("illegal chroma format\n");
......
2943 2944
             }
2944 2945
         }
2945 2946
     }
2947
     /* detect buggy encoders which dont set the low_delay flag (divx4/xvid/opendivx)*/
2948
     // note we cannot detect divx5 without b-frames easyly (allthough its buggy too)
2949
     if(s->vo_type==0 && vol_control==0 && s->divx_version==0){
2950
         if(s->picture_number==0)
2951
             printf("looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag\n");
2952
         s->low_delay=1;
2953
     }
2954

  
2946 2955
     s->picture_number++; // better than pic number==0 allways ;)
2947 2956
//printf("done\n");
2957

  
2948 2958
     return 0;
2949 2959
}
2950 2960

  

Also available in: Unified diff