Mercurial > libavcodec.hg
changeset 58:0e0a24def67a libavcodec
fixed last zero mv for field - fixed mismatch handling for intra coefs
author | glantau |
---|---|
date | Sat, 11 Aug 2001 22:08:23 +0000 |
parents | 4efb718f4dc6 |
children | efd3c19f6d62 |
files | mpeg12.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg12.c Sat Aug 11 22:07:21 2001 +0000 +++ b/mpeg12.c Sat Aug 11 22:08:23 2001 +0000 @@ -633,6 +633,8 @@ s->mv_type = MV_TYPE_16X16; s->last_mv[0][0][0] = 0; s->last_mv[0][0][1] = 0; + s->last_mv[0][1][0] = 0; + s->last_mv[0][1][1] = 0; s->mv[0][0][0] = 0; s->mv[0][0][1] = 0; } else if (mb_type & (MB_FOR | MB_BACK)) { @@ -641,7 +643,7 @@ for(i=0;i<2;i++) { if (mb_type & (MB_FOR >> i)) { s->mv_dir |= (MV_DIR_FORWARD >> i); - dprintf("mv_type=%d\n", motion_type); + dprintf("motion_type=%d\n", motion_type); switch(motion_type) { case MT_FRAME: /* or MT_16X8 */ if (s->picture_structure == PICT_FRAME) { @@ -1006,7 +1008,6 @@ scan_table = ff_alternate_vertical_scan; else scan_table = zigzag_direct; - mismatch = 1; /* DC coef */ component = (n <= 3 ? 0 : n - 4 + 1); @@ -1018,6 +1019,7 @@ s->last_dc[component] = dc; block[0] = dc << (3 - s->intra_dc_precision); dprintf("dc=%d\n", block[0]); + mismatch = block[0] ^ 1; i = 1; if (s->intra_vlc_format) rl = &rl_mpeg2;