[FFmpeg-devel] [PATCH] vf_scale_npp: move aspect ratio correction after, av_frame_copy_props
Miroslav Slugeň
thunder.m at email.cz
Sun Nov 27 02:09:05 EET 2016
Updating output aspect ratio before calling nppscale_scale has no effect
because nppscale_scale calls av_frame_copy_props which will overwrite
output aspect ratio based on source frame.
Simplest solution is to move aspect ratio update after nppscale_scale
function, but it is also possible to move aspect ratio update directly
to nppscale_scale function in future.
This should fix aspect ratio bug when using scale_npp for resolution
with different W/H than original resolution for example 1920x1080 ->
720x576 and codec which supports dynamic aspect ratio change which is
libx264, nvenc not yet, that is the reason why that bug was hidden.
--
Miroslav Slugeň
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vf_scale_npp-move-aspect-ratio-correction-after-av_f.patch
Type: text/x-patch
Size: 1499 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161127/67063e56/attachment.bin>
More information about the ffmpeg-devel
mailing list