diff h264_cabac.c @ 11325:c4c8c8c426eb libavcodec

Remove some unneeded fill_rectangle() for 16x16 blocks.
author michael
date Sun, 28 Feb 2010 23:54:24 +0000
parents 1a349d669184
children a3790cd1c9ca
line wrap: on
line diff
--- a/h264_cabac.c	Sun Feb 28 19:58:26 2010 +0000
+++ b/h264_cabac.c	Sun Feb 28 23:54:24 2010 +0000
@@ -1503,8 +1503,7 @@
                     }else
                         ref=0;
                         fill_rectangle(&h->ref_cache[list][ scan8[0] ], 4, 4, 8, ref, 1);
-                }else
-                    fill_rectangle(&h->ref_cache[list][ scan8[0] ], 4, 4, 8, (uint8_t)LIST_NOT_USED, 1); //FIXME factorize and the other fill_rect below too
+                }
             }
             for(list=0; list<h->list_count; list++){
                 if(IS_DIR(mb_type, 0, list)){
@@ -1515,8 +1514,7 @@
 
                     fill_rectangle(h->mvd_cache[list][ scan8[0] ], 4, 4, 8, pack8to16(mpx,mpy), 2);
                     fill_rectangle(h->mv_cache[list][ scan8[0] ], 4, 4, 8, pack16to32(mx,my), 4);
-                }else
-                    fill_rectangle(h->mv_cache[list][ scan8[0] ], 4, 4, 8, 0, 4);
+                }
             }
         }
         else if(IS_16X8(mb_type)){