summaryrefslogtreecommitdiff
path: root/libavcodec/ratecontrol.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-06-24 21:19:24 +0300
committerMartin Storsjö <martin@martin.st>2012-07-04 15:10:57 +0300
commit89b81a1c8841817fd3610396a33e6a1420a195ec (patch)
tree06a9f58143a78dd6d398f879d584ce04febdd3ac /libavcodec/ratecontrol.c
parent8c14f7a5937f05238e0e16da6ceccad8a86458ad (diff)
downloadffmpeg-89b81a1c8841817fd3610396a33e6a1420a195ec.tar.gz
mpegvideo: remove VLAs
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r--libavcodec/ratecontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 9065f8e416..e2e3a54137 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -529,8 +529,8 @@ static void adaptive_quantization(MpegEncContext *s, double q){
const float border_masking = s->avctx->border_masking;
float bits_sum= 0.0;
float cplx_sum= 0.0;
- float cplx_tab[s->mb_num];
- float bits_tab[s->mb_num];
+ float *cplx_tab = s->cplx_tab;
+ float *bits_tab = s->bits_tab;
const int qmin= s->avctx->mb_lmin;
const int qmax= s->avctx->mb_lmax;
Picture * const pic= &s->current_picture;