avfilter/af_compand: Silence "may be used uninitialized" warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-08 06:53:16 +02:00
parent c71f8d40be
commit 6c23a85000
1 changed files with 1 additions and 0 deletions

View File

@ -297,6 +297,7 @@ static int compand_drain(AVFilterLink *outlink)
s->pts += av_rescale_q(frame->nb_samples, s->pts += av_rescale_q(frame->nb_samples,
(AVRational){ 1, outlink->sample_rate }, outlink->time_base); (AVRational){ 1, outlink->sample_rate }, outlink->time_base);
av_assert0(channels > 0);
for (chan = 0; chan < channels; chan++) { for (chan = 0; chan < channels; chan++) {
AVFrame *delay_frame = s->delay_frame; AVFrame *delay_frame = s->delay_frame;
double *dbuf = (double *)delay_frame->extended_data[chan]; double *dbuf = (double *)delay_frame->extended_data[chan];