diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-03-04 07:19:46 +0100 |
---|---|---|
committer | Sean McGovern <gseanmcg@gmail.com> | 2014-04-14 18:38:20 -0400 |
commit | ee21d270f8dc5fdb2263f5dd87407aae9fe1ecd1 (patch) | |
tree | 53395a08177f6f3133362b5751f09786bf5ed0bb /libavfilter | |
parent | 9f7119b7fe003e94d72e81f3aa922568c2827dce (diff) | |
download | ffmpeg-ee21d270f8dc5fdb2263f5dd87407aae9fe1ecd1.tar.gz |
af_channelmap: fix ONE_STR mapping mode
get_channel() returns 0 on success
CC:libav-stable@libav.org
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_channelmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index c4b87daeef..c39207ebf5 100644 --- a/libavfilter/af_channelmap.c +++ b/libavfilter/af_channelmap.c @@ -197,7 +197,7 @@ static av_cold int channelmap_init(AVFilterContext *ctx, const char *args) s->map[i].out_channel_idx = i; break; case MAP_ONE_STR: - if (!get_channel(&mapping, &in_ch, ',')) { + if (get_channel(&mapping, &in_ch, ',') < 0) { av_log(ctx, AV_LOG_ERROR, err); ret = AVERROR(EINVAL); goto fail; |