changeset 5008:71da0c30248b libavcodec

dont write over the end of ref_cache
author michael
date Mon, 14 May 2007 23:22:02 +0000
parents f7edc4fe94db
children 4d10df33e823
files svq3.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/svq3.c	Mon May 14 14:28:13 2007 +0000
+++ b/svq3.c	Mon May 14 23:22:02 2007 +0000
@@ -480,7 +480,6 @@
         N??11111
         N??11111
         N??11111
-        N
     */
 
     for (m=0; m < 2; m++) {
@@ -939,7 +938,8 @@
       int j;
       for(j=-1; j<4; j++)
         h->ref_cache[m][scan8[0] + 8*i + j]= 1;
-      h->ref_cache[m][scan8[0] + 8*i + j]= PART_NOT_AVAILABLE;
+      if(i<3)
+        h->ref_cache[m][scan8[0] + 8*i + j]= PART_NOT_AVAILABLE;
     }
   }