Fixed an issue with NxN using uninitialized y_recdata

NxN is still disabled by default as it's being fixed.
This commit is contained in:
Marko Viitanen 2014-02-07 15:30:00 +02:00
parent 4a9cbb3de9
commit 27ffb98d08

View file

@ -344,7 +344,7 @@ void search_intra(encoder_control *encoder, uint16_t x_ctb, uint16_t y_ctb, uint
for (i = 0; i < 4; ++i) { for (i = 0; i < 4; ++i) {
int x_pos = x + offsets[i].x * width; int x_pos = x + offsets[i].x * width;
int y_pos = y + offsets[i].y * width; int y_pos = y + offsets[i].y * width;
intra_build_reference_border(cur_pic, cur_pic->y_recdata, intra_build_reference_border(cur_pic, cur_pic->y_data,
x_pos, y_pos, x_pos, y_pos,
(int16_t)width * 2 + 8, rec, (int16_t)width * 2 + 8, 0); (int16_t)width * 2 + 8, rec, (int16_t)width * 2 + 8, 0);
cur_cu->intra[i].mode = (int8_t)intra_prediction(encoder->in.cur_pic->y_data, cur_cu->intra[i].mode = (int8_t)intra_prediction(encoder->in.cur_pic->y_data,