Revision efbc614d libavcodec/h263.c

View differences:

libavcodec/h263.c
5156 5156
                s->avctx->time_base.num*= get_bits(&s->gb, 7);
5157 5157
                if(s->avctx->time_base.num == 0){
5158 5158
                    av_log(s, AV_LOG_ERROR, "zero framerate\n");
5159
                    s->avctx->time_base= (AVRational){1001, 30000}; //prevent crash
5159 5160
                    return -1;
5160 5161
                }
5161 5162
                gcd= ff_gcd(s->avctx->time_base.den, s->avctx->time_base.num);
......
5538 5539
    check_marker(gb, "before time_increment_resolution");
5539 5540
    
5540 5541
    s->avctx->time_base.den = get_bits(gb, 16);
5542
    if(!s->avctx->time_base.den){
5543
        av_log(s->avctx, AV_LOG_ERROR, "time_base.den==0\n");
5544
        return -1;
5545
    }
5541 5546
    
5542 5547
    s->time_increment_bits = av_log2(s->avctx->time_base.den - 1) + 1;
5543 5548
    if (s->time_increment_bits < 1)

Also available in: Unified diff