Mercurial > libavformat.hg
changeset 1805:2c2e787782bb libavformat
warn if bps from user and what will be stored missmatches
author | michael |
---|---|
date | Tue, 20 Feb 2007 16:20:08 +0000 |
parents | 302115721ef5 |
children | bf6a0dd6d7be |
files | riff.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/riff.c Tue Feb 20 16:18:59 2007 +0000 +++ b/riff.c Tue Feb 20 16:20:08 2007 +0000 @@ -317,6 +317,9 @@ } 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