diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-10-14 05:01:05 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-10-14 05:01:05 +0000 |
commit | 4ec0beaa593860796feead14132506226a1edf0e (patch) | |
tree | 31b8fd3d3c2dbcf87252051421cf79f82af5cb2d /libavformat/wv.c | |
parent | 03bb9ae58c8fe4b7cb0bd478e48a436305ef2ebc (diff) | |
download | ffmpeg-4ec0beaa593860796feead14132506226a1edf0e.tar.gz |
Move block size check to decoder
Originally committed as revision 6688 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wv.c')
-rw-r--r-- | libavformat/wv.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libavformat/wv.c b/libavformat/wv.c index 170755c4dd..e601c05fcb 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -171,12 +171,6 @@ static int wv_read_packet(AVFormatContext *s, return -1; } - samples = LE_32(wc->extra); - /* should not happen but who knows */ - if(samples * 2 * wc->chan > AVCODEC_MAX_AUDIO_FRAME_SIZE){ - av_log(s, AV_LOG_ERROR, "Packet size is too big to be handled in lavc!\n"); - return -EIO; - } if(av_new_packet(pkt, wc->blksize + WV_EXTRA_SIZE) < 0) return AVERROR_NOMEM; memcpy(pkt->data, wc->extra, WV_EXTRA_SIZE); |