[FFmpeg-devel] [PATCH] Set AVCodecContext qdiff constraints to 1..31

Alexander Strange astrange
Mon Apr 21 17:10:26 CEST 2008

On Apr 21, 2008, at 9:34 AM, Stefano Sabatini wrote:

> Hi, as in subject,
> I wonder if there is currently a reason for which the AVCodecContext
> options array constraints for qdiff (INT_MIN..INT_MAX) are different
> from those of ffmpeg.c:opt_qdiff (1..31).
> If not I propose to apply this patch.
> Best regards.
> --  
> FFmpeg =  Foolish & Furious MultiPurpose EnGine

Not all codecs have qp1-31. H264 has 0-51 and I'd expect some others  
(maybe snow?) to have a lot more as well.
Of course, there's no good reason to set it higher than 5 even in  
h264, but it might as well have the same min/max as vqscale.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2427 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080421/cfe185dd/attachment.bin>

More information about the ffmpeg-devel mailing list