Commit a1f6643d authored by Michael Niedermayer's avatar Michael Niedermayer

dont write over the end of ref_cache

Originally committed as revision 9026 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9b5dc867
......@@ -480,7 +480,6 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) {
N??11111
N??11111
N??11111
N
*/
for (m=0; m < 2; m++) {
......@@ -939,7 +938,8 @@ static int svq3_decode_frame (AVCodecContext *avctx,
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;
}
}
......
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