[FFmpeg-devel] [PATCH] swscale: Remove duplicated code

Michael Niedermayer michael at niedermayer.cc
Mon Mar 25 12:17:38 EET 2019


On Sun, Mar 24, 2019 at 01:04:51PM +0200, Lauri Kasanen wrote:
> In this function, the exact same clamping happens both in the if and unconditionally.
> 
> Signed-off-by: Lauri Kasanen <cand at gmx.com>
> ---
>  libswscale/output.c | 14 --------------
>  1 file changed, 14 deletions(-)

The removed code is the one that should stay, the other should be
removed.
one check for a rarely true condition should be faster than 4 checks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190325/275ff0eb/attachment.sig>


More information about the ffmpeg-devel mailing list