summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_libmpeg2.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-07 16:32:54 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-07 16:32:54 +0000
commit2563ac95f0642cde33c1dc911027d31a5a117802 (patch)
tree9b1a468037c3e78069dbc5e9aeeeb4a9da5c5089 /libmpcodecs/vd_libmpeg2.c
parente3ae844c0ee4751b74268b9aba0b585fc364f2eb (diff)
downloadmpv-2563ac95f0642cde33c1dc911027d31a5a117802.tar.bz2
mpv-2563ac95f0642cde33c1dc911027d31a5a117802.tar.xz
quant_store moved to frame struct
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5516 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_libmpeg2.c')
-rw-r--r--libmpcodecs/vd_libmpeg2.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libmpcodecs/vd_libmpeg2.c b/libmpcodecs/vd_libmpeg2.c
index 2f7d5260ab..13e7449b80 100644
--- a/libmpcodecs/vd_libmpeg2.c
+++ b/libmpcodecs/vd_libmpeg2.c
@@ -40,11 +40,6 @@ static picture_t *picture=NULL; // exported from libmpeg2/decode.c
static int table_init_state=0;
-#ifdef MPEG12_POSTPROC
-#include "../postproc/postprocess.h"
-int quant_store[MPEG2_MBR+1][MPEG2_MBC+1]; // [Review]
-#endif
-
// to set/get/query special features/parameters
static int control(sh_video_t *sh,int cmd,void* arg,...){
return CONTROL_UNKNOWN;
@@ -184,6 +179,8 @@ static mp_image_t* parse_chunk (sh_video_t* sh, int code, uint8_t * buffer, int
picture->current_frame->base[1]=mpi->planes[1];
picture->current_frame->base[2]=mpi->planes[2];
picture->current_frame->mpi=mpi; // tricky!
+ mpi->qscale=&picture->current_frame->quant_store[1][1];
+ mpi->qstride=(MPEG2_MBC+1);
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"mpeg2: [%c] %p %s \n",
(picture->picture_coding_type == B_TYPE) ? 'B':'P',
mpi, (mpi->flags&MP_IMGFLAG_DIRECT)?"DR!":"");