--- branches/release-1_3-branch/xvidcore/src/image/image.c 2020/05/29 21:18:06 2195 +++ branches/release-1_3-branch/xvidcore/src/image/image.c 2020/05/29 21:18:51 2196 @@ -158,7 +158,7 @@ height = (height+15)&~15; } - width2 = width/2; + width2 = MAX(1, width/2); for (i = 0; i < EDGE_SIZE; i++) { memset(dst, *src, EDGE_SIZE);