# HG changeset patch # User michaelni # Date 1056156640 0 # Node ID e9da5a651eabaf78ff0349eb4060c364ba33297a # Parent f78341ab5fba7eb179d11184442f284f2732c417 fixing concealment MVs prediction diff -r f78341ab5fba -r e9da5a651eab mpeg12.c --- a/mpeg12.c Fri Jun 20 15:21:25 2003 +0000 +++ b/mpeg12.c Sat Jun 21 00:50:40 2003 +0000 @@ -959,12 +959,16 @@ /* just parse them */ if (s->picture_structure != PICT_FRAME) skip_bits1(&s->gb); /* field select */ - mpeg_decode_motion(s, s->mpeg_f_code[0][0], 0); - mpeg_decode_motion(s, s->mpeg_f_code[0][1], 0); + + s->mv[0][0][0]= s->last_mv[0][0][0]= s->last_mv[0][1][0] = + mpeg_decode_motion(s, s->mpeg_f_code[0][0], s->last_mv[0][0][0]); + s->mv[0][0][1]= s->last_mv[0][0][1]= s->last_mv[0][1][1] = + mpeg_decode_motion(s, s->mpeg_f_code[0][1], s->last_mv[0][0][1]); + skip_bits1(&s->gb); /* marker */ - } + }else + memset(s->last_mv, 0, sizeof(s->last_mv)); /* reset mv prediction */ s->mb_intra = 1; - memset(s->last_mv, 0, sizeof(s->last_mv)); /* reset mv prediction */ if (s->mpeg2) { for(i=0;i<6;i++) {