[XviD-devel] If the framerate is 2 ?

jz jz at kinghoo.net
Sun Apr 27 22:05:36 CEST 2003


I meet a lot problem if the frame rate is 2 or 3 when codec.
like "Integer division by zero" in "mbprediction.c"
"
	} else {
		*acpred_direction = 2;	/* horizontal */
		predictors[0] = (int16_t)(DIV_DIV(pLeft[0], iDcScaler)); //the iDcScaler is 0.
		for (i = 1; i < 8; i++) {
			predictors[i] = rescale(left_quant, current_quant, pLeft[i + 7]);
		}
	}
"

But there is no such problem when framerate > 10.
And I meet some exception like "Access violation reading location 0xb95f3f50."

Is it my fault or something else? How can i avoid it? I need help..oh..

The codec is v0.9.1 and compiler is Vc v13.10.2292





More information about the XviD-devel mailing list