diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-02-20 16:20:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-02-20 16:20:08 +0000 |
commit | 9376710d061674c2b04098fd127718d300891d15 (patch) | |
tree | f1b42ccb981ebe8c6f48b74fce01f2a6a577f743 /libavformat/riff.c | |
parent | a185f52a86c721b8c0c46597befd25d617456f6a (diff) | |
download | ffmpeg-9376710d061674c2b04098fd127718d300891d15.tar.gz |
warn if bps from user and what will be stored missmatches
Originally committed as revision 8044 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r-- | libavformat/riff.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c index 0a2a77cb7c..95d871b5cd 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -317,6 +317,9 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc) } else { bps = 16; } + if(bps != 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); + } if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS) { blkalign = enc->frame_size; //this is wrong, but seems many demuxers dont work if this is set correctly |