libavcodec/utils.c:297: error: Uninitialized Value
  The value read from stride_align[_] was never initialized.

libavcodec/utils.c:297:17: 
295.                 buf->data[i] = buf->base[i];
296.             else
297.                 buf->data[i] = buf->base[i] + ALIGN((buf->linesize[i]*EDGE_WIDTH>>v_shift) + (EDGE_WIDTH>>h_shift), stride_align[i]);
                     ^
298.         }
299.         if(size[1] && !size[2])

int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
    int i;
    int w= s->width;
    int h= s->height;
    InternalBuffer *buf;
    int *picture_number;
    if(pic->data[0]!=NULL) {
        av_log(s, AV_LOG_ERROR, "pic->data[0]!=NULL in avcodec_default_get_buffer\n");
        return -1;
    }
    if(s->internal_buffer_count >= INTERNAL_BUFFER_SIZE) {
        av_log(s, AV_LOG_ERROR, "internal_buffer_count overflow (missing release_buffer?)\n");
        return -1;
    }
    if(avcodec_check_dimensions(s,w,h))
        return -1;
    if(s->internal_buffer==NULL){
        s->internal_buffer= av_mallocz((INTERNAL_BUFFER_SIZE+1)*sizeof(InternalBuffer));
    }
#if 0
    s->internal_buffer= av_fast_realloc(
        s->internal_buffer,
        &s->internal_buffer_size,
        sizeof(InternalBuffer)*FFMAX(99,  s->internal_buffer_count+1)
        );
#endif
    buf= &((InternalBuffer*)s->internal_buffer)[s->internal_buffer_count];
    picture_number= &(((InternalBuffer*)s->internal_buffer)[INTERNAL_BUFFER_SIZE]).last_pic_num;
    (*picture_number)++;
    if(buf->base[0] && (buf->width != w || buf->height != h || buf->pix_fmt != s->pix_fmt)){
        for(i=0; i<4; i++){
            av_freep(&buf->base[i]);
            buf->data[i]= NULL;
        }
    }
    if(buf->base[0]){
        pic->age= *picture_number - buf->last_pic_num;
        buf->last_pic_num= *picture_number;
    }else{
        int h_chroma_shift, v_chroma_shift;
        int size[4] = {0};
        int tmpsize;
        AVPicture picture;
        int stride_align[4];
        avcodec_get_chroma_sub_sample(s->pix_fmt, &h_chroma_shift, &v_chroma_shift);
        avcodec_align_dimensions(s, &w, &h);
        if(!(s->flags&CODEC_FLAG_EMU_EDGE)){
            w+= EDGE_WIDTH*2;
            h+= EDGE_WIDTH*2;
        }
        ff_fill_linesize(&picture, s->pix_fmt, w);
        for (i=0; i<4; i++){
#if HAVE_MMX
            if(s->codec_id == CODEC_ID_SVQ1)
                stride_align[i]= 16;
            else
#endif
            stride_align[i] = STRIDE_ALIGN;
            picture.linesize[i] = ALIGN(picture.linesize[i], stride_align[i]);
        }
        tmpsize = ff_fill_pointer(&picture, NULL, s->pix_fmt, h);
        for (i=0; i<3 && picture.data[i+1]; i++)
            size[i] = picture.data[i+1] - picture.data[i];
        size[i] = tmpsize - (picture.data[i] - picture.data[0]);
        buf->last_pic_num= -256*256*256*64;
        memset(buf->base, 0, sizeof(buf->base));
        memset(buf->data, 0, sizeof(buf->data));
        for(i=0; i<4 && size[i]; i++){
            const int h_shift= i==0 ? 0 : h_chroma_shift;
            const int v_shift= i==0 ? 0 : v_chroma_shift;
            buf->linesize[i]= picture.linesize[i];
            buf->base[i]= av_malloc(size[i]+16);
            if(buf->base[i]==NULL) return -1;
            memset(buf->base[i], 128, size[i]);
            if((s->flags&CODEC_FLAG_EMU_EDGE) || !size[2])
                buf->data[i] = buf->base[i];
            else
                buf->data[i] = buf->base[i] + ALIGN((buf->linesize[i]*EDGE_WIDTH>>v_shift) + (EDGE_WIDTH>>h_shift), stride_align[i]);
        }
        if(size[1] && !size[2])
            ff_set_systematic_pal((uint32_t*)buf->data[1], s->pix_fmt);
        buf->width  = s->width;
        buf->height = s->height;
        buf->pix_fmt= s->pix_fmt;
        pic->age= 256*256*256*64;
    }
    pic->type= FF_BUFFER_TYPE_INTERNAL;
    for(i=0; i<4; i++){
        pic->base[i]= buf->base[i];
        pic->data[i]= buf->data[i];
        pic->linesize[i]= buf->linesize[i];
    }
    s->internal_buffer_count++;
    pic->reordered_opaque= s->reordered_opaque;
    if(s->debug&FF_DEBUG_BUFFERS)
        av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count);
    return 0;
}
['int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){\n    int i;\n    int w= s->width;\n    int h= s->height;\n    InternalBuffer *buf;\n    int *picture_number;\n    if(pic->data[0]!=NULL) {\n        av_log(s, AV_LOG_ERROR, "pic->data[0]!=NULL in avcodec_default_get_buffer\\n");\n        return -1;\n    }\n    if(s->internal_buffer_count >= INTERNAL_BUFFER_SIZE) {\n        av_log(s, AV_LOG_ERROR, "internal_buffer_count overflow (missing release_buffer?)\\n");\n        return -1;\n    }\n    if(avcodec_check_dimensions(s,w,h))\n        return -1;\n    if(s->internal_buffer==NULL){\n        s->internal_buffer= av_mallocz((INTERNAL_BUFFER_SIZE+1)*sizeof(InternalBuffer));\n    }\n#if 0\n    s->internal_buffer= av_fast_realloc(\n        s->internal_buffer,\n        &s->internal_buffer_size,\n        sizeof(InternalBuffer)*FFMAX(99,  s->internal_buffer_count+1)\n        );\n#endif\n    buf= &((InternalBuffer*)s->internal_buffer)[s->internal_buffer_count];\n    picture_number= &(((InternalBuffer*)s->internal_buffer)[INTERNAL_BUFFER_SIZE]).last_pic_num;\n    (*picture_number)++;\n    if(buf->base[0] && (buf->width != w || buf->height != h || buf->pix_fmt != s->pix_fmt)){\n        for(i=0; i<4; i++){\n            av_freep(&buf->base[i]);\n            buf->data[i]= NULL;\n        }\n    }\n    if(buf->base[0]){\n        pic->age= *picture_number - buf->last_pic_num;\n        buf->last_pic_num= *picture_number;\n    }else{\n        int h_chroma_shift, v_chroma_shift;\n        int size[4] = {0};\n        int tmpsize;\n        AVPicture picture;\n        int stride_align[4];\n        avcodec_get_chroma_sub_sample(s->pix_fmt, &h_chroma_shift, &v_chroma_shift);\n        avcodec_align_dimensions(s, &w, &h);\n        if(!(s->flags&CODEC_FLAG_EMU_EDGE)){\n            w+= EDGE_WIDTH*2;\n            h+= EDGE_WIDTH*2;\n        }\n        ff_fill_linesize(&picture, s->pix_fmt, w);\n        for (i=0; i<4; i++){\n#if HAVE_MMX\n            if(s->codec_id == CODEC_ID_SVQ1)\n                stride_align[i]= 16;\n            else\n#endif\n            stride_align[i] = STRIDE_ALIGN;\n            picture.linesize[i] = ALIGN(picture.linesize[i], stride_align[i]);\n        }\n        tmpsize = ff_fill_pointer(&picture, NULL, s->pix_fmt, h);\n        for (i=0; i<3 && picture.data[i+1]; i++)\n            size[i] = picture.data[i+1] - picture.data[i];\n        size[i] = tmpsize - (picture.data[i] - picture.data[0]);\n        buf->last_pic_num= -256*256*256*64;\n        memset(buf->base, 0, sizeof(buf->base));\n        memset(buf->data, 0, sizeof(buf->data));\n        for(i=0; i<4 && size[i]; i++){\n            const int h_shift= i==0 ? 0 : h_chroma_shift;\n            const int v_shift= i==0 ? 0 : v_chroma_shift;\n            buf->linesize[i]= picture.linesize[i];\n            buf->base[i]= av_malloc(size[i]+16);\n            if(buf->base[i]==NULL) return -1;\n            memset(buf->base[i], 128, size[i]);\n            if((s->flags&CODEC_FLAG_EMU_EDGE) || !size[2])\n                buf->data[i] = buf->base[i];\n            else\n                buf->data[i] = buf->base[i] + ALIGN((buf->linesize[i]*EDGE_WIDTH>>v_shift) + (EDGE_WIDTH>>h_shift), stride_align[i]);\n        }\n        if(size[1] && !size[2])\n            ff_set_systematic_pal((uint32_t*)buf->data[1], s->pix_fmt);\n        buf->width  = s->width;\n        buf->height = s->height;\n        buf->pix_fmt= s->pix_fmt;\n        pic->age= 256*256*256*64;\n    }\n    pic->type= FF_BUFFER_TYPE_INTERNAL;\n    for(i=0; i<4; i++){\n        pic->base[i]= buf->base[i];\n        pic->data[i]= buf->data[i];\n        pic->linesize[i]= buf->linesize[i];\n    }\n    s->internal_buffer_count++;\n    pic->reordered_opaque= s->reordered_opaque;\n    if(s->debug&FF_DEBUG_BUFFERS)\n        av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\\n", pic, s->internal_buffer_count);\n    return 0;\n}']