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;
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to