[XviD-devel] maybe I found a bug

Radoslaw 'sysKin' Czyz xvid-devel@xvid.org
Mon, 30 Sep 2002 16:56:45 +0930


Hi,

I think I found a problem which caused current CVS to crash on my
machine. I'm sorry I'm not sure, but I'm online for a few minutes only
so it's probably better to tell you now, then to try to fix this
myself and THEN tell you - especially becaue it's the area of encoder
which I don't know. 

I did some tests and the crash happens in BitstreamWriteVopHeader()
which is called by FrameCodeI - this is the first frame in the
bitstream.

There is a line:
        for (i = 0; i < frame->seconds; i++) {
Right before this line my debug output says that frame->seconds equals
-31091 (uninitialized?). My next debug output should be right before
WRITE_MARKER() - this debug string is not in my file, so this must be
_after_ the crash.

I don't know what should be there, what's being done there etc - so
please help me.

I'm going off-line for a few hours now.

Regards,
Radek