diff mpegvideo.c @ 466:805714c0c10f libavcodec

new field for communicating with external postprocessing
author nickols_k
date Mon, 03 Jun 2002 07:01:42 +0000
parents 3fdd0627f6bd
children ad65941c8eb5
line wrap: on
line diff
--- a/mpegvideo.c	Sun Jun 02 22:08:04 2002 +0000
+++ b/mpegvideo.c	Mon Jun 03 07:01:42 2002 +0000
@@ -1178,8 +1178,11 @@
     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 */