libavcodec/msmpeg4.c:850: error: Uninitialized Value
  The value read from extquant was never initialized.

libavcodec/msmpeg4.c:850:13: 
848.             put_bits(&s->pb, 8 + extrabits, level);
849.         else if(extrabits > 0)//== VC1 && s->qscale<=2
850.             put_bits(&s->pb, extrabits, extquant);
                 ^
851. 
852.         if (level != 0) {

static void msmpeg4_encode_dc(MpegEncContext * s, int level, int n, int *dir_ptr)
{
    int sign, code;
    int pred, extquant;
    int extrabits = 0;
    if(s->msmpeg4_version==1){
        int32_t *dc_val;
        pred = msmpeg4v1_pred_dc(s, n, &dc_val);
        *dc_val= level;
    }else{
        int16_t *dc_val;
        pred = msmpeg4_pred_dc(s, n, &dc_val, dir_ptr);
        if (n < 4) {
            *dc_val = level * s->y_dc_scale;
        } else {
            *dc_val = level * s->c_dc_scale;
        }
    }
    level -= pred;
    if(s->msmpeg4_version<=2){
        if (n < 4) {
            put_bits(&s->pb,
                     v2_dc_lum_table[level+256][1],
                     v2_dc_lum_table[level+256][0]);
        }else{
            put_bits(&s->pb,
                     v2_dc_chroma_table[level+256][1],
                     v2_dc_chroma_table[level+256][0]);
        }
    }else{
        sign = 0;
        if (level < 0) {
            level = -level;
            sign = 1;
        }
        code = level;
        if (code > DC_MAX)
            code = DC_MAX;
        else if( s->msmpeg4_version>=6 ) {
            if( s->qscale == 1 ) {
                extquant = (level + 3) & 0x3;
                code  = ((level+3)>>2);
            } else if( s->qscale == 2 ) {
                extquant = (level + 1) & 0x1;
                code  = ((level+1)>>1);
            }
        }
        if (s->dc_table_index == 0) {
            if (n < 4) {
                put_bits(&s->pb, ff_table0_dc_lum[code][1], ff_table0_dc_lum[code][0]);
            } else {
                put_bits(&s->pb, ff_table0_dc_chroma[code][1], ff_table0_dc_chroma[code][0]);
            }
        } else {
            if (n < 4) {
                put_bits(&s->pb, ff_table1_dc_lum[code][1], ff_table1_dc_lum[code][0]);
            } else {
                put_bits(&s->pb, ff_table1_dc_chroma[code][1], ff_table1_dc_chroma[code][0]);
            }
        }
        if(s->msmpeg4_version>=6 && s->qscale<=2)
            extrabits = 3 - s->qscale;
        if (code == DC_MAX)
            put_bits(&s->pb, 8 + extrabits, level);
        else if(extrabits > 0)
            put_bits(&s->pb, extrabits, extquant);
        if (level != 0) {
            put_bits(&s->pb, 1, sign);
        }
    }
}
['static void msmpeg4_encode_dc(MpegEncContext * s, int level, int n, int *dir_ptr)\n{\n    int sign, code;\n    int pred, extquant;\n    int extrabits = 0;\n    if(s->msmpeg4_version==1){\n        int32_t *dc_val;\n        pred = msmpeg4v1_pred_dc(s, n, &dc_val);\n        *dc_val= level;\n    }else{\n        int16_t *dc_val;\n        pred = msmpeg4_pred_dc(s, n, &dc_val, dir_ptr);\n        if (n < 4) {\n            *dc_val = level * s->y_dc_scale;\n        } else {\n            *dc_val = level * s->c_dc_scale;\n        }\n    }\n    level -= pred;\n    if(s->msmpeg4_version<=2){\n        if (n < 4) {\n            put_bits(&s->pb,\n                     v2_dc_lum_table[level+256][1],\n                     v2_dc_lum_table[level+256][0]);\n        }else{\n            put_bits(&s->pb,\n                     v2_dc_chroma_table[level+256][1],\n                     v2_dc_chroma_table[level+256][0]);\n        }\n    }else{\n        sign = 0;\n        if (level < 0) {\n            level = -level;\n            sign = 1;\n        }\n        code = level;\n        if (code > DC_MAX)\n            code = DC_MAX;\n        else if( s->msmpeg4_version>=6 ) {\n            if( s->qscale == 1 ) {\n                extquant = (level + 3) & 0x3;\n                code  = ((level+3)>>2);\n            } else if( s->qscale == 2 ) {\n                extquant = (level + 1) & 0x1;\n                code  = ((level+1)>>1);\n            }\n        }\n        if (s->dc_table_index == 0) {\n            if (n < 4) {\n                put_bits(&s->pb, ff_table0_dc_lum[code][1], ff_table0_dc_lum[code][0]);\n            } else {\n                put_bits(&s->pb, ff_table0_dc_chroma[code][1], ff_table0_dc_chroma[code][0]);\n            }\n        } else {\n            if (n < 4) {\n                put_bits(&s->pb, ff_table1_dc_lum[code][1], ff_table1_dc_lum[code][0]);\n            } else {\n                put_bits(&s->pb, ff_table1_dc_chroma[code][1], ff_table1_dc_chroma[code][0]);\n            }\n        }\n        if(s->msmpeg4_version>=6 && s->qscale<=2)\n            extrabits = 3 - s->qscale;\n        if (code == DC_MAX)\n            put_bits(&s->pb, 8 + extrabits, level);\n        else if(extrabits > 0)\n            put_bits(&s->pb, extrabits, extquant);\n        if (level != 0) {\n            put_bits(&s->pb, 1, sign);\n        }\n    }\n}']