Mercurial > libavformat.hg
changeset 1387:e7412266a076 libavformat
Move block size check to decoder
author | kostya |
---|---|
date | Sat, 14 Oct 2006 05:01:05 +0000 |
parents | 3e12e3ca0ce3 |
children | 3172bf94c066 |
files | wv.c |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/wv.c Fri Oct 13 19:19:07 2006 +0000 +++ b/wv.c Sat Oct 14 05:01:05 2006 +0000 @@ -171,12 +171,6 @@ 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);