[FFmpeg-soc] [soc]: r2441 - alacenc/alacenc.c
jai_menon
subversion at mplayerhq.hu
Sun Jun 15 04:36:49 CEST 2008
Author: jai_menon
Date: Sun Jun 15 04:36:49 2008
New Revision: 2441
Log:
check frame size before reading sampledata
Modified:
alacenc/alacenc.c
Modified: alacenc/alacenc.c
==============================================================================
--- alacenc/alacenc.c (original)
+++ alacenc/alacenc.c Sun Jun 15 04:36:49 2008
@@ -265,6 +265,11 @@ static int alac_encode_frame(AVCodecCont
PutBitContext *pb = &s->pbctx;
int i, ch;
+ if(avctx->frame_size > DEFAULT_FRAME_SIZE) {
+ av_log(avctx, AV_LOG_ERROR, "input frame size exceeded\n");
+ return -1;
+ }
+
if(buf_size < s->max_coded_frame_size) {
av_log(avctx, AV_LOG_ERROR, "buffer size is too small\n");
return -1;
More information about the FFmpeg-soc
mailing list