[FFmpeg-cvslog] af_channelmap: fix ONE_STR mapping mode

Anton Khirnov git at videolan.org
Sun Mar 23 20:12:06 CET 2014


ffmpeg | branch: release/2.2 | Anton Khirnov <anton at khirnov.net> | Tue Mar  4 07:19:46 2014 +0100| [80239a8bb11f730d95f03dfbd0deab258b413b0e] | committer: Reinhard Tartler

af_channelmap: fix ONE_STR mapping mode

get_channel() returns 0 on success

CC:libav-stable at libav.org
(cherry picked from commit e843612695007cc623813073754c651ab43021f7)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80239a8bb11f730d95f03dfbd0deab258b413b0e
---

 libavfilter/af_channelmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c
index 71d51e7..3e5cc3d 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);
             }



More information about the ffmpeg-cvslog mailing list