[x264-devel] [PATCH] take interlaced into account for level checks

Loren Merritt lorenm at u.washington.edu
Fri Jul 25 11:18:18 CEST 2008


On Thu, 24 Jul 2008, Loic wrote:

> The b_interlaced parameter isn't taken into account in
> x264_validate_levels, this results in 4.2 or greater streams being
> encoded in interlaced mode while not allowed.

I don't object to your patch (anything that discourages interlacing is 
fine with me), but your description of its effect is misleading.
Do you mean people put "--level 4.2 --interlaced" on the commandline 
without knowing it's forbidden? Then you're correct, and the warning may 
help. Otoh, if you mean that x264 may select L4.2 for interlaced content 
with unspecified level, then your patch changes the selection to L5.1 
(since it finds no valid level and just has to pick one).

--Loren Merritt


More information about the x264-devel mailing list