[FFmpeg-trac] #7592(avformat:new): FFmpeg download data twice

FFmpeg trac at avcodec.org
Tue Dec 4 17:46:33 EET 2018

#7592: FFmpeg download data twice
             Reporter:  atrzcinski   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:
             Keywords:               |  unspecified
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
 In case of data muxed in a way, that video and audio packets for the same
 ptses are more than 1 sec distant (so when ff_configure_buffers_for_index
 changes size of AVIOContext buffers to 2 *
 biggest_distance_between_data_for_1_sec_pts) FFmpeg fetches the same data
 twice from the server. This is because in fill_buffer in aviobuf.c when we
 need data audio from pts x that we don't currently have in buffer, we drop
 the whole buffer and download new range. But afterward, we need video from
 pts x, which was in buffer already (before seek caused by audio), so we
 drop buffer again and seek to this position.

Ticket URL: <https://trac.ffmpeg.org/ticket/7592>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list