[FFmpeg-cvslog] r11230 - trunk/libavcodec/rv40.c

kostya subversion
Sun Dec 16 13:45:39 CET 2007


Author: kostya
Date: Sun Dec 16 13:45:38 2007
New Revision: 11230

Log:
RV40 decoder should use availability cache

Modified:
   trunk/libavcodec/rv40.c

Modified: trunk/libavcodec/rv40.c
==============================================================================
--- trunk/libavcodec/rv40.c	(original)
+++ trunk/libavcodec/rv40.c	Sun Dec 16 13:45:38 2007
@@ -213,13 +213,13 @@ static int rv40_decode_mb_info(RV34DecCo
     if(--r->s.mb_skip_run)
          return RV34_MB_SKIP;
 
-    if(r->avail[0])
+    if(r->avail_cache[5-1])
         blocks[r->mb_type[mb_pos - 1]]++;
-    if(r->avail[1]){
+    if(r->avail_cache[5-4]){
         blocks[r->mb_type[mb_pos - s->mb_stride]]++;
-        if(r->avail[2])
+        if(r->avail_cache[5-2])
             blocks[r->mb_type[mb_pos - s->mb_stride + 1]]++;
-        if(r->avail[3])
+        if(r->avail_cache[5-5])
             blocks[r->mb_type[mb_pos - s->mb_stride - 1]]++;
     }
 




More information about the ffmpeg-cvslog mailing list