Revision b14748dd

View differences:

libavcodec/intelh263dec.c
46 46
    skip_bits1(&s->gb);         /* freeze picture release off */
47 47

  
48 48
    format = get_bits(&s->gb, 3);
49
    if (format != 7) {
49
    if (format == 0 || format == 6) {
50 50
        av_log(s->avctx, AV_LOG_ERROR, "Intel H263 free format not supported\n");
51 51
        return -1;
52 52
    }
......
64 64
    s->obmc= get_bits1(&s->gb);
65 65
    s->pb_frame = get_bits1(&s->gb);
66 66

  
67
    if(format == 7){
67
    if (format < 6) {
68
        s->width = h263_format[format][0];
69
        s->height = h263_format[format][1];
70
    }
71
    else {
68 72
        format = get_bits(&s->gb, 3);
69 73
        if(format == 0 || format == 7){
70 74
            av_log(s->avctx, AV_LOG_ERROR, "Wrong Intel H263 format\n");

Also available in: Unified diff