[FFmpeg-soc] [soc]: r4490 - aacenc/aacenc.c

alexc subversion at mplayerhq.hu
Fri Jun 19 15:38:27 CEST 2009


Author: alexc
Date: Fri Jun 19 15:38:27 2009
New Revision: 4490

Log:
Log input buffer violations.

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	Thu Jun 18 16:04:42 2009	(r4489)
+++ aacenc/aacenc.c	Fri Jun 19 15:38:27 2009	(r4490)
@@ -572,6 +572,10 @@ static int aac_encode_frame(AVCodecConte
         s->lambda *= ratio;
     }
 
+    if (avctx->frame_bits > 6144*avctx->channels) {
+        av_log(avctx, AV_LOG_ERROR, "input buffer violation %d > %d.\n", avctx->frame_bits, 6144*avctx->channels);
+    }
+
     if(!data)
         s->last_frame = 1;
     memcpy(s->samples, s->samples + 1024 * avctx->channels, 1024 * avctx->channels * sizeof(s->samples[0]));


More information about the FFmpeg-soc mailing list