libavcodec/atrac3.c:920: error: Uninitialized Value
  The value read from version was never initialized.

libavcodec/atrac3.c:920:9: 
918. 
919.     if (version != 4) {
920.         av_log(avctx, AV_LOG_ERROR, "Version %d != 4.\n", version);
             ^
921.         return AVERROR_INVALIDDATA;
922.     }

static av_cold int atrac3_decode_init(AVCodecContext *avctx)
{
    int i, ret;
    int version, delay, samples_per_frame, frame_factor;
    const uint8_t *edata_ptr = avctx->extradata;
    ATRAC3Context *q = avctx->priv_data;
    if (avctx->channels <= 0 || avctx->channels > 2) {
        av_log(avctx, AV_LOG_ERROR, "Channel configuration error!\n");
        return AVERROR(EINVAL);
    }
    if (avctx->extradata_size == 14) {
        av_log(avctx, AV_LOG_DEBUG, "[0-1] %d\n",
               bytestream_get_le16(&edata_ptr));
        edata_ptr += 4;
        q->coding_mode = bytestream_get_le16(&edata_ptr);
        av_log(avctx, AV_LOG_DEBUG,"[8-9] %d\n",
               bytestream_get_le16(&edata_ptr));
        frame_factor = bytestream_get_le16(&edata_ptr);
        av_log(avctx, AV_LOG_DEBUG,"[12-13] %d\n",
               bytestream_get_le16(&edata_ptr));
        samples_per_frame    = SAMPLES_PER_FRAME * avctx->channels;
        version              = 4;
        delay                = 0x88E;
        q->coding_mode       = q->coding_mode ? JOINT_STEREO : STEREO;
        q->scrambled_stream  = 0;
        if (avctx->block_align !=  96 * avctx->channels * frame_factor &&
            avctx->block_align != 152 * avctx->channels * frame_factor &&
            avctx->block_align != 192 * avctx->channels * frame_factor) {
            av_log(avctx, AV_LOG_ERROR, "Unknown frame/channel/frame_factor "
                   "configuration %d/%d/%d\n", avctx->block_align,
                   avctx->channels, frame_factor);
            return AVERROR_INVALIDDATA;
        }
    } else if (avctx->extradata_size == 10) {
        version                = bytestream_get_be32(&edata_ptr);
        samples_per_frame      = bytestream_get_be16(&edata_ptr);
        delay                  = bytestream_get_be16(&edata_ptr);
        q->coding_mode         = bytestream_get_be16(&edata_ptr);
        q->scrambled_stream    = 1;
    } else {
        av_log(NULL, AV_LOG_ERROR, "Unknown extradata size %d.\n",
               avctx->extradata_size);
    }
    if (version != 4) {
        av_log(avctx, AV_LOG_ERROR, "Version %d != 4.\n", version);
        return AVERROR_INVALIDDATA;
    }
    if (samples_per_frame != SAMPLES_PER_FRAME &&
        samples_per_frame != SAMPLES_PER_FRAME * 2) {
        av_log(avctx, AV_LOG_ERROR, "Unknown amount of samples per frame %d.\n",
               samples_per_frame);
        return AVERROR_INVALIDDATA;
    }
    if (delay != 0x88E) {
        av_log(avctx, AV_LOG_ERROR, "Unknown amount of delay %x != 0x88E.\n",
               delay);
        return AVERROR_INVALIDDATA;
    }
    if (q->coding_mode == STEREO)
        av_log(avctx, AV_LOG_DEBUG, "Normal stereo detected.\n");
    else if (q->coding_mode == JOINT_STEREO)
        av_log(avctx, AV_LOG_DEBUG, "Joint stereo detected.\n");
    else {
        av_log(avctx, AV_LOG_ERROR, "Unknown channel coding mode %x!\n",
               q->coding_mode);
        return AVERROR_INVALIDDATA;
    }
    if (avctx->block_align >= UINT_MAX / 2)
        return AVERROR(EINVAL);
    q->decoded_bytes_buffer = av_mallocz(FFALIGN(avctx->block_align, 4) +
                                         FF_INPUT_BUFFER_PADDING_SIZE);
    if (q->decoded_bytes_buffer == NULL)
        return AVERROR(ENOMEM);
    avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
    if ((ret = ff_mdct_init(&q->mdct_ctx, 9, 1, 1.0 / 32768)) < 0) {
        av_log(avctx, AV_LOG_ERROR, "Error initializing MDCT\n");
        av_freep(&q->decoded_bytes_buffer);
        return ret;
    }
    q->weighting_delay[0] = 0;
    q->weighting_delay[1] = 7;
    q->weighting_delay[2] = 0;
    q->weighting_delay[3] = 7;
    q->weighting_delay[4] = 0;
    q->weighting_delay[5] = 7;
    for (i = 0; i < 4; i++) {
        q->matrix_coeff_index_prev[i] = 3;
        q->matrix_coeff_index_now[i]  = 3;
        q->matrix_coeff_index_next[i] = 3;
    }
    avpriv_float_dsp_init(&q->fdsp, avctx->flags & CODEC_FLAG_BITEXACT);
    ff_fmt_convert_init(&q->fmt_conv, avctx);
    q->units = av_mallocz(sizeof(*q->units) * avctx->channels);
    if (!q->units) {
        atrac3_decode_close(avctx);
        return AVERROR(ENOMEM);
    }
    avcodec_get_frame_defaults(&q->frame);
    avctx->coded_frame = &q->frame;
    return 0;
}
['static av_cold int atrac3_decode_init(AVCodecContext *avctx)\n{\n    int i, ret;\n    int version, delay, samples_per_frame, frame_factor;\n    const uint8_t *edata_ptr = avctx->extradata;\n    ATRAC3Context *q = avctx->priv_data;\n    if (avctx->channels <= 0 || avctx->channels > 2) {\n        av_log(avctx, AV_LOG_ERROR, "Channel configuration error!\\n");\n        return AVERROR(EINVAL);\n    }\n    if (avctx->extradata_size == 14) {\n        av_log(avctx, AV_LOG_DEBUG, "[0-1] %d\\n",\n               bytestream_get_le16(&edata_ptr));\n        edata_ptr += 4;\n        q->coding_mode = bytestream_get_le16(&edata_ptr);\n        av_log(avctx, AV_LOG_DEBUG,"[8-9] %d\\n",\n               bytestream_get_le16(&edata_ptr));\n        frame_factor = bytestream_get_le16(&edata_ptr);\n        av_log(avctx, AV_LOG_DEBUG,"[12-13] %d\\n",\n               bytestream_get_le16(&edata_ptr));\n        samples_per_frame    = SAMPLES_PER_FRAME * avctx->channels;\n        version              = 4;\n        delay                = 0x88E;\n        q->coding_mode       = q->coding_mode ? JOINT_STEREO : STEREO;\n        q->scrambled_stream  = 0;\n        if (avctx->block_align !=  96 * avctx->channels * frame_factor &&\n            avctx->block_align != 152 * avctx->channels * frame_factor &&\n            avctx->block_align != 192 * avctx->channels * frame_factor) {\n            av_log(avctx, AV_LOG_ERROR, "Unknown frame/channel/frame_factor "\n                   "configuration %d/%d/%d\\n", avctx->block_align,\n                   avctx->channels, frame_factor);\n            return AVERROR_INVALIDDATA;\n        }\n    } else if (avctx->extradata_size == 10) {\n        version                = bytestream_get_be32(&edata_ptr);\n        samples_per_frame      = bytestream_get_be16(&edata_ptr);\n        delay                  = bytestream_get_be16(&edata_ptr);\n        q->coding_mode         = bytestream_get_be16(&edata_ptr);\n        q->scrambled_stream    = 1;\n    } else {\n        av_log(NULL, AV_LOG_ERROR, "Unknown extradata size %d.\\n",\n               avctx->extradata_size);\n    }\n    if (version != 4) {\n        av_log(avctx, AV_LOG_ERROR, "Version %d != 4.\\n", version);\n        return AVERROR_INVALIDDATA;\n    }\n    if (samples_per_frame != SAMPLES_PER_FRAME &&\n        samples_per_frame != SAMPLES_PER_FRAME * 2) {\n        av_log(avctx, AV_LOG_ERROR, "Unknown amount of samples per frame %d.\\n",\n               samples_per_frame);\n        return AVERROR_INVALIDDATA;\n    }\n    if (delay != 0x88E) {\n        av_log(avctx, AV_LOG_ERROR, "Unknown amount of delay %x != 0x88E.\\n",\n               delay);\n        return AVERROR_INVALIDDATA;\n    }\n    if (q->coding_mode == STEREO)\n        av_log(avctx, AV_LOG_DEBUG, "Normal stereo detected.\\n");\n    else if (q->coding_mode == JOINT_STEREO)\n        av_log(avctx, AV_LOG_DEBUG, "Joint stereo detected.\\n");\n    else {\n        av_log(avctx, AV_LOG_ERROR, "Unknown channel coding mode %x!\\n",\n               q->coding_mode);\n        return AVERROR_INVALIDDATA;\n    }\n    if (avctx->block_align >= UINT_MAX / 2)\n        return AVERROR(EINVAL);\n    q->decoded_bytes_buffer = av_mallocz(FFALIGN(avctx->block_align, 4) +\n                                         FF_INPUT_BUFFER_PADDING_SIZE);\n    if (q->decoded_bytes_buffer == NULL)\n        return AVERROR(ENOMEM);\n    avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;\n    if ((ret = ff_mdct_init(&q->mdct_ctx, 9, 1, 1.0 / 32768)) < 0) {\n        av_log(avctx, AV_LOG_ERROR, "Error initializing MDCT\\n");\n        av_freep(&q->decoded_bytes_buffer);\n        return ret;\n    }\n    q->weighting_delay[0] = 0;\n    q->weighting_delay[1] = 7;\n    q->weighting_delay[2] = 0;\n    q->weighting_delay[3] = 7;\n    q->weighting_delay[4] = 0;\n    q->weighting_delay[5] = 7;\n    for (i = 0; i < 4; i++) {\n        q->matrix_coeff_index_prev[i] = 3;\n        q->matrix_coeff_index_now[i]  = 3;\n        q->matrix_coeff_index_next[i] = 3;\n    }\n    avpriv_float_dsp_init(&q->fdsp, avctx->flags & CODEC_FLAG_BITEXACT);\n    ff_fmt_convert_init(&q->fmt_conv, avctx);\n    q->units = av_mallocz(sizeof(*q->units) * avctx->channels);\n    if (!q->units) {\n        atrac3_decode_close(avctx);\n        return AVERROR(ENOMEM);\n    }\n    avcodec_get_frame_defaults(&q->frame);\n    avctx->coded_frame = &q->frame;\n    return 0;\n}']