[XviD-devel] _real_ fix of 2pass.c

suxen_drol xvid-devel@xvid.org
Sun, 02 Feb 2003 21:05:40 +1100


On Sun, 02 Feb 2003 10:56:51 +0100 Dirk Knop <dknop@gwdg.de> wrote:

> Hi,
> 
> sorry that I didn't do this earlier, but I was very busy with work :(
> 
> But here we go, as Foxer suggested, the fix for vfw/2pass encoding is 
> very easy indeed - in line 1517 (roundabout, might be 1518 as well) of 
> vfw/src/2pass.c there is an assignment of hlength to nnstats.dd_v . This 
> breaks the whole 2pass thingy as dd_v is used to store the frame type.
> 
> Simply setting this value to 0 restores the usual 2pass behaviour 
> without any ugly hacks which cause i.e. "delayed" bitstreams (pad frames 
> weren't passed to vdub and were inserted as real frames into the 
> bitstream with my hack if i'm not mistaken).
> 
> If someone already sent this "patch"ed file around then I'm sorry, I 
> deleted most of the mailing list traffic in the last week due to the 
> lack of time to read them all (and remember them ;) ).

commited.

-- pete; life is like a box of ammo