[FFmpeg-trac] #6751(avformat:new): libavformat/mpegtsenc.c:1646: bad if statement ?
FFmpeg
trac at avcodec.org
Tue Oct 17 12:42:56 EEST 2017
#6751: libavformat/mpegtsenc.c:1646: bad if statement ?
----------------------------------+---------------------------------------
Reporter: dcb | Type: defect
Status: new | Priority: normal
Component: avformat | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
ffmpeg-3.4/libavformat/mpegtsenc.c:1646]: (warning) Logical conjunction
always evaluates to false: EXPR < 32 && EXPR >= 48.
Source code is
if ((state & 0x7e) < 2*16 && (state & 0x7e) >= 2*24)
maybe better code
if ((state & 0x7e) < 2*16 || (state & 0x7e) >= 2*24)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6751>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list