aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorNick Kurshev <nickols_k@mail.ru>2002-06-03 07:58:35 +0000
committerNick Kurshev <nickols_k@mail.ru>2002-06-03 07:58:35 +0000
commit8696b636452869c37cbe0725b40dfbdac4c41d2e (patch)
tree592f3993131e458397f5eef2fed025f3e296d741 /libavcodec/mpegvideo.c
parentae72cda62bfdf657a6edcd2a19f001cf54b53dee (diff)
downloadffmpeg-8696b636452869c37cbe0725b40dfbdac4c41d2e.tar.gz
use qstride instead of fixed constants
Originally committed as revision 653 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index f0f87fb81f..f63b24b33d 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1182,7 +1182,7 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
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 */