--- branches/release-1_3-branch/xvidcore/src/image/colorspace.c 2019/11/12 14:41:36 2179 +++ branches/release-1_3-branch/xvidcore/src/image/colorspace.c 2019/11/12 14:48:35 2180 @@ -102,6 +102,7 @@ int y_dif = y_stride - fixed_width; \ int uv_dif = uv_stride - (fixed_width / 2); \ int x, y; \ + if ((x_ptr == NULL) || (x_dif < 0)) return; \ if (vflip) { \ x_ptr += (height - 1) * x_stride; \ x_dif = -(SIZE)*fixed_width - x_stride; \