changeset 6027:d1b9b395b1db libavcodec

RV40 decoder should use availability cache
author kostya
date Sun, 16 Dec 2007 12:45:38 +0000
parents 49c086b24908
children 1ba8ee13e5b9
files rv40.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rv40.c	Sun Dec 16 12:44:25 2007 +0000
+++ b/rv40.c	Sun Dec 16 12:45:38 2007 +0000
@@ -213,13 +213,13 @@
     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]]++;
     }