[XviD-devel] Questions / Bug fixes / Patches

Marcin Jaworski indrid at o2.pl
Fri Aug 27 21:09:30 CEST 2010


> Sorry, I forgot to include line 264 of encoder.c in the patch I posted.
> It was copy'n'paste from a larger patch. Here's a corrected patch: 
> http://pastebin.com/Sq2uPiHj
>
> I've been using something like that for months and it seems to work 
> perfectly (even with artificially created dupes that otherwise caused 
> N-VOPs).
>
> Line 1178 of encoder.c uses frame_drop_ratio == -1 to force a coded VOP 
> (it causes the "<=" in line 1887 to be always false, which results in a 
> coded VOP). Hence my conclusion about "-1" ;-)
>
> So it's not really an official part of the API, but just a hack. Thank 
> you for clearing that up.
>
> Best regards,
> Marcin Jaworski
> _______________________________________________
>
>   
Nevermind... Now I read Carl's patch through the WWW archive of the 
mailing list (I didn't receive some of the posted messages through 
e-mail - I guess it's time to use a better mail account). I see that his 
method is quite similar to the one I've been using for some time now. 
Sorry for the confusion.

Best regards,
Marcin Jaworski


More information about the Xvid-devel mailing list