[FFmpeg-trac] #6560(avformat:new): av_seek_frame messes up PTS of frames

FFmpeg trac at avcodec.org
Sat Aug 5 01:05:00 EEST 2017

#6560: av_seek_frame messes up PTS of frames
             Reporter:  denial      |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |

Comment (by denial):

 If I understand correctly, what happens is that the MOV demuxer forgets to
 set the headers_read flag for the fragment that has already been parsed by
 mov_read_header. When av_seek_frame is called, mov_switch_root decides to
 parse the headers again, resulting in mov_read_trun appending the values
 for the first fragment a second time to the ctts array.

Ticket URL: <https://trac.ffmpeg.org/ticket/6560#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list