[FFmpeg-cvslog] avfilter/af_compand: Silence "may be used uninitialized" warning
Michael Niedermayer
git at videolan.org
Thu May 8 07:50:25 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 8 06:53:16 2014 +0200| [6c23a85000fd5956a2820495b2a081f65d03b962] | committer: Michael Niedermayer
avfilter/af_compand: Silence "may be used uninitialized" warning
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6c23a85000fd5956a2820495b2a081f65d03b962
---
libavfilter/af_compand.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c
index deaaf44..89430ac 100644
--- a/libavfilter/af_compand.c
+++ b/libavfilter/af_compand.c
@@ -297,6 +297,7 @@ static int compand_drain(AVFilterLink *outlink)
s->pts += av_rescale_q(frame->nb_samples,
(AVRational){ 1, outlink->sample_rate }, outlink->time_base);
+ av_assert0(channels > 0);
for (chan = 0; chan < channels; chan++) {
AVFrame *delay_frame = s->delay_frame;
double *dbuf = (double *)delay_frame->extended_data[chan];
More information about the ffmpeg-cvslog
mailing list