Opened 18 months ago

Closed 5 months ago

Last modified 5 months ago

#6752 closed defect (fixed)

ffmpeg-3.4/libavformat/hlsenc.c:210: bad if statement ?

Reported by: dcb Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by cehoyos)

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 (2)

comment:1 Changed 5 months ago by cehoyos

  • Description modified (diff)
  • Keywords hls added
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from unspecified to git-master

comment:2 Changed 5 months ago by cehoyos

  • Description modified (diff)
Note: See TracTickets for help on using tickets.