changeset 10934:9b31065f013d libavcodec

Dont waste time initializing stuff for deblocking intra mbs, none of it is used.
author michael
date Tue, 19 Jan 2010 03:14:45 +0000
parents 3a7fa91fa168
children fb2dcafa2db3
files h264.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.h	Tue Jan 19 02:28:26 2010 +0000
+++ b/h264.h	Tue Jan 19 03:14:45 2010 +0000
@@ -806,6 +806,8 @@
            && (top_xy   < 0 || ((qp + s->current_picture.qscale_table[top_xy ] + 1)>>1) <= qp_thresh)){
             return 1;
         }
+        if(IS_INTRA(mb_type))
+            return 0;
 
         *((uint64_t*)&h->non_zero_count_cache[0+8*1])= *((uint64_t*)&h->non_zero_count[mb_xy][ 0]);
         *((uint64_t*)&h->non_zero_count_cache[0+8*2])= *((uint64_t*)&h->non_zero_count[mb_xy][ 8]);