mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
af_channelmap: fix ONE_STR mapping mode
get_channel() returns 0 on success CC:libav-stable@libav.org
This commit is contained in:
committed by
Sean McGovern
parent
9f7119b7fe
commit
ee21d270f8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user