[FFmpeg-devel] [PATCH] Fix odd width or height from scaling filter expression

Jeroen Ost jeroen.ost at gmail.com
Mon Aug 20 14:44:21 CEST 2012


The attached patch fixes the issue that the scaling filter, when used
with an expression like
scale=iw*sar:ih (to correct non-square pixels), can lead to odd width or height.
Example: 720x576 [SAR 12:11] and scale=iw*sar:ih
before patch: 785x576
after patch: 786x576

It causes a vf_pad filter further in the filter chain to abort because
of the odd video size. I suspect codecs and players don't like odd
dimensions either.

Jeroen Ost
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-odd-width-or-height-after-scaling-causes-issues-.patch
Type: application/octet-stream
Size: 917 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120820/de4554b7/attachment.obj>

More information about the ffmpeg-devel mailing list