[FFmpeg-trac] #9622(avformat:closed): Skip samples overflow and negative in fragmented MP4

FFmpeg trac at avcodec.org
Sat Feb 5 14:52:48 EET 2022


#9622: Skip samples overflow and negative in fragmented MP4
-------------------------------------+-------------------------------------
             Reporter:  Matt         |                    Owner:  (none)
  Wolenetz                           |
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:  fixed
             Keywords:  mov,         |               Blocked By:
  skip_samples, timestamp, seek      |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by James):

 * status:  new => closed
 * resolution:   => fixed

Comment:

 Technically speaking, the first field in AV_PKT_DATA_SKIP_SAMPLES
 described as "number of samples to skip from start of this packet" is to
 be interpreted as an uint32, not an int. I have changed that for the
 aforementioned debug log message in
 928e7c60cc5f220e931df51392b5577b253ffa23 to reflect this.

 Either way, since the side data is ultimately going to be used to skip
 samples in an AVFrame where nb_samples is an int, I've clipped the value
 to the 0..INT_MAX range in 3b9bd63ad92967e06d5e2f67e0cfd9093bf7700d and
 22d6d2b4818f3b1b451d1b4c4dd3d484e3040261.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9622#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list