#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
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac

Reply via email to