Browse Source

pan: raise correct error when there is no param specified.

tags/n0.10
Clément Bœsch Clément Bœsch 13 years ago
parent
commit
66fdbcbbc9
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavfilter/af_pan.c

+ 6
- 0
libavfilter/af_pan.c View File

@@ -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);


Loading…
Cancel
Save