af_channelmap: fix ONE_STR mapping mode

get_channel() returns 0 on success

CC:libav-stable@libav.org
This commit is contained in:
Anton Khirnov
2014-03-04 07:19:46 +01:00
committed by Sean McGovern
parent 9f7119b7fe
commit ee21d270f8
+1 -1
View File
@@ -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;