comparison svq3.c @ 5008:71da0c30248b libavcodec

dont write over the end of ref_cache
author michael
date Mon, 14 May 2007 23:22:02 +0000
parents 28ebdd244a07
children ce36118abbbb
comparison
equal deleted inserted replaced
5007:f7edc4fe94db 5008:71da0c30248b
478 ???????? 478 ????????
479 ???11111 479 ???11111
480 N??11111 480 N??11111
481 N??11111 481 N??11111
482 N??11111 482 N??11111
483 N
484 */ 483 */
485 484
486 for (m=0; m < 2; m++) { 485 for (m=0; m < 2; m++) {
487 if (s->mb_x > 0 && h->intra4x4_pred_mode[mb_xy - 1][0] != -1) { 486 if (s->mb_x > 0 && h->intra4x4_pred_mode[mb_xy - 1][0] != -1) {
488 for (i=0; i < 4; i++) { 487 for (i=0; i < 4; i++) {
937 int i; 936 int i;
938 for(i=0; i<4; i++){ 937 for(i=0; i<4; i++){
939 int j; 938 int j;
940 for(j=-1; j<4; j++) 939 for(j=-1; j<4; j++)
941 h->ref_cache[m][scan8[0] + 8*i + j]= 1; 940 h->ref_cache[m][scan8[0] + 8*i + j]= 1;
942 h->ref_cache[m][scan8[0] + 8*i + j]= PART_NOT_AVAILABLE; 941 if(i<3)
942 h->ref_cache[m][scan8[0] + 8*i + j]= PART_NOT_AVAILABLE;
943 } 943 }
944 } 944 }
945 945
946 for (s->mb_y=0; s->mb_y < s->mb_height; s->mb_y++) { 946 for (s->mb_y=0; s->mb_y < s->mb_height; s->mb_y++) {
947 for (s->mb_x=0; s->mb_x < s->mb_width; s->mb_x++) { 947 for (s->mb_x=0; s->mb_x < s->mb_width; s->mb_x++) {