libavformat/mxg.c:115: error: Uninitialized Value
  The value read from soi_pos was never initialized.

libavformat/mxg.c:115:23: 
113.         return AVERROR(ENOMEM);
114.     mxg->buffer_ptr = mxg->buffer + current_pos;
115.     if (mxg->soi_ptr) mxg->soi_ptr = mxg->buffer + soi_pos;
                           ^
116. 
117.     /* get data */

static int mxg_update_cache(AVFormatContext *s, unsigned int cache_size)
{
    MXGContext *mxg = s->priv_data;
    unsigned int current_pos = mxg->buffer_ptr - mxg->buffer;
    unsigned int soi_pos;
    int ret;
    if (current_pos > current_pos + cache_size)
        return AVERROR(ENOMEM);
    if (mxg->soi_ptr) soi_pos = mxg->soi_ptr - mxg->buffer;
    mxg->buffer = av_fast_realloc(mxg->buffer, &mxg->buffer_size,
                                  current_pos + cache_size +
                                  FF_INPUT_BUFFER_PADDING_SIZE);
    if (!mxg->buffer)
        return AVERROR(ENOMEM);
    mxg->buffer_ptr = mxg->buffer + current_pos;
    if (mxg->soi_ptr) mxg->soi_ptr = mxg->buffer + soi_pos;
    ret = get_buffer(s->pb, mxg->buffer_ptr + mxg->cache_size,
                     cache_size - mxg->cache_size);
    if (ret < 0)
        return ret;
    mxg->cache_size += ret;
    return ret;
}
['static int mxg_update_cache(AVFormatContext *s, unsigned int cache_size)\n{\n    MXGContext *mxg = s->priv_data;\n    unsigned int current_pos = mxg->buffer_ptr - mxg->buffer;\n    unsigned int soi_pos;\n    int ret;\n    if (current_pos > current_pos + cache_size)\n        return AVERROR(ENOMEM);\n    if (mxg->soi_ptr) soi_pos = mxg->soi_ptr - mxg->buffer;\n    mxg->buffer = av_fast_realloc(mxg->buffer, &mxg->buffer_size,\n                                  current_pos + cache_size +\n                                  FF_INPUT_BUFFER_PADDING_SIZE);\n    if (!mxg->buffer)\n        return AVERROR(ENOMEM);\n    mxg->buffer_ptr = mxg->buffer + current_pos;\n    if (mxg->soi_ptr) mxg->soi_ptr = mxg->buffer + soi_pos;\n    ret = get_buffer(s->pb, mxg->buffer_ptr + mxg->cache_size,\n                     cache_size - mxg->cache_size);\n    if (ret < 0)\n        return ret;\n    mxg->cache_size += ret;\n    return ret;\n}']