[FFmpeg-devel] [PATCH 2/2] swscale/output: Bias 16bps output calculations to improve non overflowing range for GBRP16/GBRPF32

Michael Niedermayer michael at niedermayer.cc
Wed Nov 2 23:07:14 EET 2022


On Wed, Nov 02, 2022 at 10:02:39PM +0100, Michael Niedermayer wrote:
> Fixes: integer overflow
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libswscale/output.c       | 25 +++++++++++--------------
>  libswscale/x86/output.asm | 16 +++++++++++++++-
>  2 files changed, 26 insertions(+), 15 deletions(-)

Note, these corner case overflows could affect some of the similary
implemented cases that are not depth 16 too

ill fix them if issues are replicated

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20221102/95642b60/attachment.sig>


More information about the ffmpeg-devel mailing list