[XviD-devel] dev-api-3 bframes>0 bug

peter ross xvid-devel@xvid.org
Mon, 30 Sep 2002 22:48:57 +1000


hello,

iam getting segfaults on my machine:
    dev-api-3, xvidcore, max_bframes > 0

ive located the problem, appears to be with my "SKIP bf" code.
commenting-out the lines below, seems to solve the problem.

while the problem appears to be time related (and caused by gruels
new timestamp patch), iam gonna re-think this whole "bframes-in-avi"
stuff. and maybe restructure the encoder.c as its rathery ugly.
divx5's N_VOP method is dumb, and makes decoding difficult with 
ffmpeg,fdam,etc. i will looking into a suitable workaground.

-- pete

	} else if (BitstreamPos(&bs) == 0) {

		DPRINTF(DPRINTF_DEBUG,"*** SKIP bf: head=%i tail=%i   queue: head=%i 
tail=%i size=%i",
				pEnc->bframenum_head, pEnc->bframenum_tail,
				pEnc->queue_head, pEnc->queue_tail, pEnc->queue_size);

		pFrame->intra = 0;

		//set_timecodes(pEnc->current,pEnc->reference,pEnc->mbParam.fbase);
		//BitstreamWriteVopHeader(&bs, &pEnc->mbParam, pEnc->current, 0); // write 
N_VOP
		//BitstreamPad(&bs);
		pFrame->length = BitstreamLength(&bs);

		DPRINTF(DPRINTF_DEBUG,"*** SKIP bf: bitstream length=%i", pFrame->length);

		return XVID_ERR_OK;



_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com