[FFmpeg-devel] [PATCH] Fix aspect or interlacing change in the stream should reinitialize filters

Jeroen Ost jeroen.ost at gmail.com
Mon Aug 20 15:25:32 CEST 2012


Hi,

Currently, aspect ratio and interlacing changes are only taken into
account in the beginning of the stream, or if the stream's width or
height parameters change.
With DVB broadcast systems it seems to happen that the width and
height are kept constant at e.g. 720x576 or 704x576, and only aspect
ratio and interlacing is actually changing in the middle of the
stream.
In the current code, filters are not reinitialized. As a result scale,
pad and deinterlacing filters that rely on SAR or DAR value, do not
get reinitialized with the updated values. The image looks 'squashed'
from that point on.

This patch fixes that. It was tested for aspect ratio transitions from
16:9 to 4:3 or 16:11 and 12:11 in all possible combinations.

Best regards

Jeroen Ost
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-aspect-or-interlacing-changes-should-reinitialize-filters.patch
Type: application/octet-stream
Size: 3617 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120820/e4077b46/attachment.obj>


More information about the ffmpeg-devel mailing list