--- trunk/xvidcore/src/decoder.c 2019/11/03 11:50:49 2177 +++ trunk/xvidcore/src/decoder.c 2019/11/06 10:33:01 2178 @@ -1666,7 +1666,7 @@ goto repeat; } - if(dec->frames == 0 && coding_type != I_VOP) { + if((dec->frames == 0 && coding_type != I_VOP) || (!dec->width || !dec->height)) { /* 1st frame is not an i-vop */ goto repeat; }