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

Michael Niedermayer michael at niedermayer.cc
Tue Mar 26 23:00:54 EET 2019


On Tue, Mar 26, 2019 at 08:58:34AM +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 | 10 ----------
>  1 file changed, 10 deletions(-)
> 
> v2: Remove the unconditional instead of the if'd clipping.
> I'll leave changing the bit pattern to others, there's so many funcs using 0x100.
> 
> diff --git a/libswscale/output.c b/libswscale/output.c
> index d7c53e6..d3401f0 100644
> --- a/libswscale/output.c
> +++ b/libswscale/output.c

should be ok

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- 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/20190326/1c8d2f54/attachment.sig>


More information about the ffmpeg-devel mailing list