summaryrefslogtreecommitdiff
path: root/libavfilter/af_channelmap.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-03-04 07:19:46 +0100
committerAnton Khirnov <anton@khirnov.net>2014-03-16 07:43:52 +0100
commite843612695007cc623813073754c651ab43021f7 (patch)
treefb6a562e85ae75c5f365e96e91a50901b4a8229e /libavfilter/af_channelmap.c
parent8f629a986c46f227abda1811a6ad1f449871ca35 (diff)
af_channelmap: fix ONE_STR mapping mode
get_channel() returns 0 on success CC:libav-stable@libav.org
Diffstat (limited to 'libavfilter/af_channelmap.c')
-rw-r--r--libavfilter/af_channelmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c
index 71d51e7594..3e5cc3d7e4 100644
--- a/libavfilter/af_channelmap.c
+++ b/libavfilter/af_channelmap.c
@@ -188,7 +188,7 @@ static av_cold int channelmap_init(AVFilterContext *ctx)
s->map[i].out_channel_idx = i;
break;
case MAP_ONE_STR:
- if (!get_channel(&mapping, &in_ch, separator)) {
+ if (get_channel(&mapping, &in_ch, separator) < 0) {
av_log(ctx, AV_LOG_ERROR, err);
return AVERROR(EINVAL);
}