Commit a8f22f87 authored by michael's avatar michael

dont write over the end of ref_cache


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9026 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7ce5ff6e
...@@ -480,7 +480,6 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) { ...@@ -480,7 +480,6 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) {
N??11111 N??11111
N??11111 N??11111
N??11111 N??11111
N
*/ */
for (m=0; m < 2; m++) { for (m=0; m < 2; m++) {
...@@ -939,7 +938,8 @@ static int svq3_decode_frame (AVCodecContext *avctx, ...@@ -939,7 +938,8 @@ static int svq3_decode_frame (AVCodecContext *avctx,
int j; int j;
for(j=-1; j<4; 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]= 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;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment