Mercurial > libavformat.hg
changeset 1389:9ed80abc8eb7 libavformat
Ignore blocks with no samples and flags (but usually with MD5 sum)
author | kostya |
---|---|
date | Sun, 15 Oct 2006 04:50:19 +0000 |
parents | 3172bf94c066 |
children | 0fda3bce9fd9 |
files | wv.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/wv.c Sat Oct 14 20:43:39 2006 +0000 +++ b/wv.c Sun Oct 15 04:50:19 2006 +0000 @@ -118,15 +118,15 @@ if(!wc->chan) wc->chan = chan; if(!wc->rate) wc->rate = rate; - if(bpp != wc->bpp){ + if(wc->flags && bpp != wc->bpp){ av_log(ctx, AV_LOG_ERROR, "Bits per sample differ, this block: %i, header block: %i\n", bpp, wc->bpp); return -1; } - if(chan != wc->chan){ + if(wc->flags && chan != wc->chan){ av_log(ctx, AV_LOG_ERROR, "Channels differ, this block: %i, header block: %i\n", chan, wc->chan); return -1; } - if(rate != wc->rate){ + if(wc->flags && rate != wc->rate){ av_log(ctx, AV_LOG_ERROR, "Sampling rate differ, this block: %i, header block: %i\n", rate, wc->rate); return -1; }