[FFmpeg-cvslog] avcodec/wavpackenc: print channel count in av_log call

James Almer git at videolan.org
Fri Jan 15 18:35:24 CET 2016


ffmpeg | branch: refs/remotes/origin/release/2.7 | James Almer <jamrial at gmail.com> | Wed Jan 13 19:26:40 2016 -0300| [a697577a641de602e55fcdcd88be3bb657ebcbd2] | committer: Michael Niedermayer

avcodec/wavpackenc: print channel count in av_log call

Fixes a warning with -Wformat-extra-args
(cherry picked from commit 17e7fdf61a04f52c499e2d06eab2cf2d22343aa9)

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/wavpackenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c
index 0798fc5..f8b6a7c 100644
--- a/libavcodec/wavpackenc.c
+++ b/libavcodec/wavpackenc.c
@@ -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);
     }
 



More information about the ffmpeg-cvslog mailing list