]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
be less noisy
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 24 Feb 2007 01:51:37 +0000 (01:51 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 24 Feb 2007 01:51:37 +0000 (01:51 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8107 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/riff.c

index 95d871b5cd83809180a9d71e8353d730e8bc77c2..89cfb512ec2d060dbbc64f63604c2d5a68c2de5c 100644 (file)
@@ -317,7 +317,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
     } else {
         bps = 16;
     }
-    if(bps != enc->bits_per_sample){
+    if(bps != enc->bits_per_sample && enc->bits_per_sample){
         av_log(enc, AV_LOG_WARNING, "requested bits_per_sample (%d) and actually stored (%d) differ\n", enc->bits_per_sample, bps);
     }