[FFmpeg-trac] #8156(undetermined:new): PVS-studio big list of errors
FFmpeg
trac at avcodec.org
Mon Sep 16 21:30:50 EEST 2019
#8156: PVS-studio big list of errors
-------------------------------------+-------------------------------------
Reporter: Balling | Owner:
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Balling):
https://github.com/FFmpeg/FFmpeg/blob/6f4ec4d909cc6dae5ce51f95e7518f2553215dc8/libavcodec/tiff.c#L1429-L1432
Wow, this is funny... There are identical sub-expressions...
{{{
./libavformat/icoenc.c 48 err V501 There are identical sub-
expressions to the left and to the right of the != operator:
AV_PIX_FMT_BGRA != AV_PIX_FMT_BGRA
./libavformat/hevc.c 543 err V501 There are identical sub-
expressions to the left and to the right of the && operator: get_bits1(gb)
&& get_bits1(gb)
./libavfilter/dnn/dnn_backend_native.h 39 err V501 There are
identical sub-expressions to the left and to the right of the | operator:
DOT_INPUT | DOT_INPUT
./libswscale/swscale_unscaled.c 2029 err V501 There are identical
sub-expressions '(srcFormat == AV_PIX_FMT_RGBA64LE && dstFormat ==
AV_PIX_FMT_RGBA64BE)' to the left and to the right of the || operator.
./libswscale/swscale_unscaled.c 2029 err V501 There are identical
sub-expressions '(srcFormat == AV_PIX_FMT_BGRA64BE && dstFormat ==
AV_PIX_FMT_BGRA64LE)' to the left and to the right of the || operator.
./libswscale/swscale_unscaled.c 2029 err V501 There are identical
sub-expressions '(srcFormat == AV_PIX_FMT_BGRA64LE && dstFormat ==
AV_PIX_FMT_BGRA64BE)' to the left and to the right of the || operator.
./libswscale/swscale_unscaled.c 2029 err V501 There are identical
sub-expressions to the left and to the right of the || operator.
./libswscale/swscale_unscaled.c 2029 err V501 There are identical
sub-expressions '(srcFormat == AV_PIX_FMT_RGBA64BE && dstFormat ==
AV_PIX_FMT_RGBA64LE)' to the left and to the right of the || operator.
}}}
By the way first thanks to patch to
https://patchwork.ffmpeg.org/patch/15105/ !!
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8156#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list