Browse Source

avfilter/af_stereotools: fix logic fail

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.0
Paul B Mahol 9 years ago
parent
commit
3e1724baf8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_stereotools.c

+ 1
- 1
libavfilter/af_stereotools.c View File

@@ -110,7 +110,7 @@ static int config_input(AVFilterLink *inlink)
StereoToolsContext *s = ctx->priv;

s->length = 2 * inlink->sample_rate * 0.05;
if (s->length <= 1 && s->length & 1) {
if (s->length <= 1 || s->length & 1) {
av_log(ctx, AV_LOG_ERROR, "sample rate is too small\n");
return AVERROR(EINVAL);
}


Loading…
Cancel
Save