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:
0bb57f8
)
pan: raise correct error when there is no param specified.
author
Clément Bœsch
<clement.boesch@smartjog.com>
Tue, 17 Jan 2012 10:01:37 +0000
(11:01 +0100)
committer
Clément Bœsch
<ubitux@gmail.com>
Tue, 24 Jan 2012 09:43:41 +0000
(10:43 +0100)
libavfilter/af_pan.c
patch
|
blob
|
history
diff --git
a/libavfilter/af_pan.c
b/libavfilter/af_pan.c
index
ca14eca
..
a62dea1
100644
(file)
--- a/
libavfilter/af_pan.c
+++ b/
libavfilter/af_pan.c
@@
-95,6
+95,12
@@
static av_cold int init(AVFilterContext *ctx, const char *args0, void *opaque)
int nb_in_channels[2] = { 0, 0 }; // number of unnamed and named input channels
double gain;
+ if (!args0) {
+ av_log(ctx, AV_LOG_ERROR,
+ "pan filter needs a channel layout and a set "
+ "of channels definitions as parameter\n");
+ return AVERROR(EINVAL);
+ }
if (!args)
return AVERROR(ENOMEM);
arg = av_strtok(args, ":", &tokenizer);