libavfilter/af_compand.c:322: error: Uninitialized Value
  The value read from dindex was never initialized.

libavfilter/af_compand.c:322:5: 
320.     }
321.     s->delay_count -= frame->nb_samples;
322.     s->delay_index = dindex;
         ^
323. 
324.     return ff_filter_frame(outlink, frame);

static int compand_drain(AVFilterLink *outlink)
{
    AVFilterContext *ctx = outlink->src;
    CompandContext *s    = ctx->priv;
    const int channels   = s->nb_channels;
    AVFrame *frame       = NULL;
    int chan, i, dindex;
    frame = ff_get_audio_buffer(outlink, FFMIN(2048, s->delay_count));
    if (!frame)
        return AVERROR(ENOMEM);
    frame->pts = s->pts;
    s->pts += av_rescale_q(frame->nb_samples,
            (AVRational){ 1, outlink->sample_rate }, outlink->time_base);
    for (chan = 0; chan < channels; chan++) {
        AVFrame *delay_frame = s->delay_frame;
        float *dbuf = (float *)delay_frame->extended_data[chan];
        float *dst = (float *)frame->extended_data[chan];
        ChanParam *cp = &s->channels[chan];
        dindex = s->delay_index;
        for (i = 0; i < frame->nb_samples; i++) {
            dst[i] = av_clipf(dbuf[dindex] * get_volume(s, cp->volume),
                    -1.0f, 1.0f);
            dindex = MOD(dindex + 1, s->delay_samples);
        }
    }
    s->delay_count -= frame->nb_samples;
    s->delay_index = dindex;
    return ff_filter_frame(outlink, frame);
}
['static int compand_drain(AVFilterLink *outlink)\n{\n    AVFilterContext *ctx = outlink->src;\n    CompandContext *s    = ctx->priv;\n    const int channels   = s->nb_channels;\n    AVFrame *frame       = NULL;\n    int chan, i, dindex;\n    frame = ff_get_audio_buffer(outlink, FFMIN(2048, s->delay_count));\n    if (!frame)\n        return AVERROR(ENOMEM);\n    frame->pts = s->pts;\n    s->pts += av_rescale_q(frame->nb_samples,\n            (AVRational){ 1, outlink->sample_rate }, outlink->time_base);\n    for (chan = 0; chan < channels; chan++) {\n        AVFrame *delay_frame = s->delay_frame;\n        float *dbuf = (float *)delay_frame->extended_data[chan];\n        float *dst = (float *)frame->extended_data[chan];\n        ChanParam *cp = &s->channels[chan];\n        dindex = s->delay_index;\n        for (i = 0; i < frame->nb_samples; i++) {\n            dst[i] = av_clipf(dbuf[dindex] * get_volume(s, cp->volume),\n                    -1.0f, 1.0f);\n            dindex = MOD(dindex + 1, s->delay_samples);\n        }\n    }\n    s->delay_count -= frame->nb_samples;\n    s->delay_index = dindex;\n    return ff_filter_frame(outlink, frame);\n}']