Opened 5 weeks ago

#6751 new defect

libavformat/mpegtsenc.c:1646: bad if statement ?

Reported by: dcb Owned by:
Priority: normal Component: avformat
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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)

Change History (0)

Note: See TracTickets for help on using tickets.