Opened 6 weeks ago

Closed 4 weeks ago

#6748 closed defect (invalid)

ffmpeg-3.4/libavfilter/window_func.h:133: suspicious assignment ?

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

Description

ffmpeg-3.4/libavfilter/window_func.h:133]: (style) Boolean value assigned to floating point variable.

Source code is

for (sum = !n, b = t = j = 1; j <= n && sum != t; b *= (n-j) * (1./j), ++j)

Change History (2)

comment:1 Changed 5 weeks ago by jkqxz

Looks fine? The loop doesn't run and sum is 1.0 if n is zero. (I guess it could be written in a less opaque way, patches welcome.)

comment:2 Changed 4 weeks ago by richardpl

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.