diff mpegvideo.c @ 467:ad65941c8eb5 libavcodec

use qstride instead of fixed constants
author nickols_k
date Mon, 03 Jun 2002 07:58:35 +0000
parents 805714c0c10f
children 11dbd00682fc
line wrap: on
line diff
--- a/mpegvideo.c	Mon Jun 03 07:01:42 2002 +0000
+++ b/mpegvideo.c	Mon Jun 03 07:58:35 2002 +0000
@@ -1182,7 +1182,7 @@
     quant_store[mb_y][mb_x]=s->qscale;
     //printf("[%02d][%02d] %d\n",mb_x,mb_y,s->qscale);
 #else
-    if(s->avctx->quant_store) s->avctx->quant_store[mb_y*(MBR+1)+mb_x] = s->qscale;
+    if(s->avctx->quant_store) s->avctx->quant_store[mb_y*s->avctx->qstride+mb_x] = s->qscale;
 #endif
 
     /* update DC predictors for P macroblocks */