Commit 86b3c0c2 authored by michael's avatar michael

warn if bps from user and what will be stored missmatches


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8044 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6b6672dc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment