mirror of https://git.ffmpeg.org/ffmpeg.git
af_channelmap: fix ONE_STR mapping mode
get_channel() returns 0 on success CC:libav-stable@libav.org
This commit is contained in:
parent
8f629a986c
commit
e843612695
|
@ -188,7 +188,7 @@ static av_cold int channelmap_init(AVFilterContext *ctx)
|
||||||
s->map[i].out_channel_idx = i;
|
s->map[i].out_channel_idx = i;
|
||||||
break;
|
break;
|
||||||
case MAP_ONE_STR:
|
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);
|
av_log(ctx, AV_LOG_ERROR, err);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue