[FFmpeg-trac] #8385(avformat:open): libavformat/aviobuf: A part of conditional expression is always true: whence != 2
FFmpeg
trac at avcodec.org
Thu Nov 14 19:03:27 EET 2024
#8385: libavformat/aviobuf: A part of conditional expression is always true:
whence != 2
------------------------------------+------------------------------------
Reporter: Balling | Owner: (none)
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by Balling):
For IRC people...
This typos patch 41ed7ab45fc693f7d7fc35664c0233f4c32d69bb changed the
documentation of AVSEEK_SIZE and AVSEEK_FORCE, it looks incorrect, other
place documents that "optional AVSEEK_FORCE bit" is a thing, so I think
"Oring this flag into "whence"" is more correct. It also says that **Valid
values are SEEK_SET, SEEK_CUR, SEEK_END (as in C library), AVSEEK_SIZE**
so those are just passed as is, it is only AVSEEK_FORCE that is just a bit
and not an actual value.
James? Anyone?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8385#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list