avcodec/wavpackenc: print channel count in av_log call
authorJames Almer <jamrial@gmail.com>
Wed, 13 Jan 2016 22:26:40 +0000 (19:26 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 13 Jan 2016 22:26:40 +0000 (19:26 -0300)
Fixes a warning with -Wformat-extra-args

libavcodec/wavpackenc.c

index f4e710d..98a011f 100644 (file)
@@ -129,7 +129,7 @@ static av_cold int wavpack_encode_init(AVCodecContext *avctx)
     s->avctx = avctx;
 
     if (avctx->channels > 255) {
-        av_log(avctx, AV_LOG_ERROR, "Too many channels\n", avctx->channels);
+        av_log(avctx, AV_LOG_ERROR, "Invalid channel count: %d\n", avctx->channels);
         return AVERROR(EINVAL);
     }