[FFmpeg-devel] [PATCH] avcodec/ffv1enc: Fix undefined left shifts of negative numbers

Michael Niedermayer michael at niedermayer.cc
Mon May 30 20:45:24 EEST 2022


On Mon, May 30, 2022 at 06:34:10PM +0200, Andreas Rheinhardt wrote:
> Maybe this fixes the FPE encountered here:
> https://fate.ffmpeg.org/report.cgi?slot=alpha-debian-qemu-gcc-4.7&time=20220530144951
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/ffv1enc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

LGTM maybe it fixes the fate box

Locally alpha is more broken than this, there are multiple other places where
FPEs are generated. And if i change the compiler flags so it doesnt generate
FPEs randomly with -mfp-trap-mode=n then gcc just gives internal compiler
errors

thx

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

Avoid a single point of failure, be that a person or equipment.
-------------- 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/20220530/a09d2ff8/attachment.sig>


More information about the ffmpeg-devel mailing list