Revision 204b5c9e libavcodec/h263.c

View differences:

libavcodec/h263.c
1456 1456
    c = dc_val[(x) + (y - 1) * wrap];
1457 1457
    
1458 1458
    /* No prediction outside GOB boundary */
1459
    if (s->first_slice_line && ((n < 2) || (n > 3)))
1460
        c = 1024;
1459
    if(s->first_slice_line && n!=3){
1460
        if(n!=2) c= 1024;
1461
        if(n!=1 && s->mb_x == s->resync_mb_x) a= 1024;
1462
    }
1461 1463
    pred_dc = 1024;
1462 1464
    /* just DC prediction */
1463 1465
    if (a != 1024 && c != 1024)
......
5117 5119
        s->qscale = get_bits(&s->gb, 5);
5118 5120
    }
5119 5121

  
5122
    s->mb_width = (s->width  + 15) / 16;
5123
    s->mb_height = (s->height  + 15) / 16;
5124
    s->mb_num = s->mb_width * s->mb_height;
5125

  
5120 5126
    /* PEI */
5121 5127
    while (get_bits1(&s->gb) != 0) {
5122 5128
        skip_bits(&s->gb, 8);
5123 5129
    }
5124
    
5130

  
5125 5131
    if(s->h263_slice_structured){
5126 5132
        if (get_bits1(&s->gb) != 1) {
5127 5133
            av_log(s->avctx, AV_LOG_ERROR, "SEPB1 marker missing\n");

Also available in: Unified diff