Revision ae210479 libavcodec/mpeg4videodec.c

View differences:

libavcodec/mpeg4videodec.c
2071 2071
     /* detect buggy encoders which don't set the low_delay flag (divx4/xvid/opendivx)*/
2072 2072
     // note we cannot detect divx5 without b-frames easily (although it's buggy too)
2073 2073
     if(s->vo_type==0 && s->vol_control_parameters==0 && s->divx_version==-1 && s->picture_number==0){
2074
         av_log(s->avctx, AV_LOG_ERROR, "looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag\n");
2074
         av_log(s->avctx, AV_LOG_WARNING, "looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag\n");
2075 2075
         s->low_delay=1;
2076 2076
     }
2077 2077

  
......
2110 2110
    for(;;) {
2111 2111
        if(get_bits_count(gb) >= gb->size_in_bits){
2112 2112
            if(gb->size_in_bits==8 && (s->divx_version>=0 || s->xvid_build>=0)){
2113
                av_log(s->avctx, AV_LOG_ERROR, "frame skip %d\n", gb->size_in_bits);
2113
                av_log(s->avctx, AV_LOG_WARNING, "frame skip %d\n", gb->size_in_bits);
2114 2114
                return FRAME_SKIPPED; //divx bug
2115 2115
            }else
2116 2116
                return -1; //end of stream

Also available in: Unified diff