changeset 11142:50eadf65efb7 libavcodec

Init sub_mb_type cleanly.
author michael
date Sat, 13 Feb 2010 13:14:07 +0000
parents e81668fc717a
children 8bfe0dae50b2
files h264_direct.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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++){