[FFmpeg-devel] [PATCH] vf_fade: fade always cal

Mark Himsley mark at mdsh.com
Fri Mar 18 16:07:06 CET 2011

draw_slice() checks that the fade factor is < 65536 and only calculates 
the fade if so. But the fade factor is clipped in end_frame() by 
av_clip_uint16() to 65535, so the fade is calculated for every frame. 
This patch alters the check so that it compares with < 65535 (UINT16_MAX).


More information about the ffmpeg-devel mailing list