summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavformat/riff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 95d871b..89cfb51 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -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);
}
OpenPOWER on IntegriCloud