diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-05-14 23:22:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-05-14 23:22:02 +0000 |
commit | a1f6643d6287a79507968e304aab530fe5a427b6 (patch) | |
tree | 4bb94b10a8159eea6ec479d80590809a921bb486 /libavcodec/svq3.c | |
parent | 9b5dc8674649b38d971419ae8a382fa003729ac4 (diff) | |
download | ffmpeg-a1f6643d6287a79507968e304aab530fe5a427b6.tar.gz |
dont write over the end of ref_cache
Originally committed as revision 9026 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index eb79169e00..93e3cb3742 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -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; } } |