diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-12-07 18:15:06 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-12-07 18:15:06 +0000 |
commit | 614e139a11198eb692ec68f30820adf3ec0f629d (patch) | |
tree | ab081d593f9baac94c4c88aa98e2a40ec997a9e9 /libavformat/wv.c | |
parent | a854bcdbec688189786a71131d43605b4185bd79 (diff) | |
download | ffmpeg-614e139a11198eb692ec68f30820adf3ec0f629d.tar.gz |
Don't try to demux WavPack files with >2 channels until we can support them
Originally committed as revision 25919 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wv.c')
-rw-r--r-- | libavformat/wv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/wv.c b/libavformat/wv.c index 03b864bdaf..5692230e8a 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -101,6 +101,10 @@ static int wv_read_block_header(AVFormatContext *ctx, ByteIOContext *pb) bpp = ((wc->flags & 3) + 1) << 3; chan = 1 + !(wc->flags & WV_MONO); rate = wv_rates[(wc->flags >> 23) & 0xF]; + if((wc->flags & 0x1800) != 0x1800){ + av_log(ctx, AV_LOG_ERROR, "Multichannel WavPack is not supported yet.\n"); + return -1; + } if(rate == -1 && !wc->block_parsed){ int64_t block_end = url_ftell(pb) + wc->blksize - 24; if(url_is_streamed(pb)){ |