git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c71f8d4
)
avfilter/af_compand: Silence "may be used uninitialized" warning
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 8 May 2014 04:53:16 +0000
(06:53 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 8 May 2014 04:53:16 +0000
(06:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_compand.c
patch
|
blob
|
history
diff --git
a/libavfilter/af_compand.c
b/libavfilter/af_compand.c
index
deaaf44
..
89430ac
100644
(file)
--- 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];