aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorNick Kurshev <nickols_k@mail.ru>2002-06-03 07:01:42 +0000
committerNick Kurshev <nickols_k@mail.ru>2002-06-03 07:01:42 +0000
commitae72cda62bfdf657a6edcd2a19f001cf54b53dee (patch)
tree099ba38082d1b954eb7626ec289065cf450e4d1d /libavcodec/mpegvideo.c
parent4136dd2437c896c585e220a9400e323fd4b2392b (diff)
downloadffmpeg-ae72cda62bfdf657a6edcd2a19f001cf54b53dee.tar.gz
new field for communicating with external postprocessing
Originally committed as revision 652 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 9cbda4ac2d..f0f87fb81f 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1178,8 +1178,11 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
mb_y = s->mb_y;
#ifdef FF_POSTPROCESS
+ /* Obsolete. Exists for compatibility with mplayer only. */
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;
#endif
/* update DC predictors for P macroblocks */