[FFmpeg-trac] #8385(avformat:open): libavformat/aviobuf: A part of conditional expression is always true: whence != 2

FFmpeg trac at avcodec.org
Mon Nov 18 03:53:48 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):

 Maybe the actual patch is that this line
 https://github.com/FFmpeg/FFmpeg/blob/b741a84a15aed8afa01800dbc4b8b0e344e5d2da/libavformat/aviobuf.c#L265

 should add || whence != SEEK_END

 That was laster whence can be SEEK_END and will in fact work only if
 whence contained AVSEEK_FORCE flag.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/8385#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list