diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-10-15 04:50:19 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-10-15 04:50:19 +0000 |
commit | a8789714ba858a663d30f4676016d5bc7368c823 (patch) | |
tree | da226846c5860ddeb6766df7c212c99e1a74f829 /libavformat | |
parent | 3d0c32d4a98172115adb60d2347d6890d810b7f8 (diff) | |
download | ffmpeg-a8789714ba858a663d30f4676016d5bc7368c823.tar.gz |
Ignore blocks with no samples and flags (but usually with MD5 sum)
Originally committed as revision 6694 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/wv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/wv.c b/libavformat/wv.c index e601c05fcb..86b7a7bd9c 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -118,15 +118,15 @@ static int wv_read_block_header(AVFormatContext *ctx, ByteIOContext *pb) 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; } |