Opened 5 weeks ago

#6752 new defect

ffmpeg-3.4/libavformat/hlsenc.c:210: 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/hlsenc.c:210]: (warning) Logical disjunction always evaluates to true: EXPR != '/'
EXPR != '
'.

Source code is

if ((*(pos - 1) != '/')
(*(pos - 1) != '
')) {

Maybe better code

if ((*(pos - 1) != '/') && (*(pos - 1) != '
')) {

Change History (0)

Note: See TracTickets for help on using tickets.