summaryrefslogtreecommitdiff
path: root/libavcodec/vorbisdec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-30 18:41:00 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-10 10:25:46 -0500
commit41899b9acb92dd59a0eca0f86cac4c49afbc1b79 (patch)
tree89358ae0bf17fa8157f38610b89c65dea03221f7 /libavcodec/vorbisdec.c
parente551a6f49a13f2e992c42bc00a8b45ad636e52ad (diff)
downloadffmpeg-41899b9acb92dd59a0eca0f86cac4c49afbc1b79.tar.gz
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
The user could provide a larger buffer, which is already checked separately before writing output.
Diffstat (limited to 'libavcodec/vorbisdec.c')
-rw-r--r--libavcodec/vorbisdec.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c
index e79feb90c6..b202249e9b 100644
--- a/libavcodec/vorbisdec.c
+++ b/libavcodec/vorbisdec.c
@@ -936,12 +936,6 @@ static int vorbis_parse_id_hdr(vorbis_context *vc)
av_log(vc->avccontext, AV_LOG_ERROR, " Vorbis id header packet corrupt (illegal blocksize). \n");
return AVERROR_INVALIDDATA;
}
- // output format int16
- if (vc->blocksize[1] / 2 * vc->audio_channels * 2 > AVCODEC_MAX_AUDIO_FRAME_SIZE) {
- av_log(vc->avccontext, AV_LOG_ERROR, "Vorbis channel count makes "
- "output packets too large.\n");
- return AVERROR_PATCHWELCOME;
- }
vc->win[0] = ff_vorbis_vwin[bl0 - 6];
vc->win[1] = ff_vorbis_vwin[bl1 - 6];