# HG changeset patch # User michael # Date 1266066847 0 # Node ID 50eadf65efb766aa30739d49658b9fc6dfa93090 # Parent e81668fc717a1ea002da5e777aba06dd049d8bda Init sub_mb_type cleanly. diff -r e81668fc717a -r 50eadf65efb7 h264_direct.c --- a/h264_direct.c Sat Feb 13 13:04:11 2010 +0000 +++ b/h264_direct.c Sat Feb 13 13:14:07 2010 +0000 @@ -149,7 +149,7 @@ const int16_t (*l1mv0)[2], (*l1mv1)[2]; const int8_t *l1ref0, *l1ref1; const int is_b8x8 = IS_8X8(*mb_type); - unsigned int sub_mb_type; + unsigned int sub_mb_type= MB_TYPE_L0L1;; int i8, i4; int ref[2]; int mv[2]; @@ -160,7 +160,6 @@ #define MB_TYPE_16x16_OR_INTRA (MB_TYPE_16x16|MB_TYPE_INTRA4x4|MB_TYPE_INTRA16x16|MB_TYPE_INTRA_PCM) *mb_type |= MB_TYPE_L0L1; - sub_mb_type |= MB_TYPE_L0L1; /* ref = min(neighbors) */ for(list=0; list<2; list++){