[FFmpeg-trac] #9949(avformat:new): When the RTSP plays a TS stream, after the seek operation is performed, the data cached in the PES is not cleared. As a result, the data before the seek operation can be read after the seek operation.

FFmpeg trac at avcodec.org
Wed Sep 28 15:06:56 EEST 2022


#9949: When the RTSP plays a TS stream, after the seek operation is performed, the
data cached in the PES is not cleared. As a result, the data before the
seek operation can be read after the seek operation.
-----------------------------------+---------------------------------------
             Reporter:  wujian     |                     Type:  defect
               Status:  new        |                 Priority:  normal
            Component:  avformat   |                  Version:  unspecified
             Keywords:  RTSP SEEK  |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
-----------------------------------+---------------------------------------
 Summary of the bug:
 add Log print location:
         ret = s->iformat->read_packet(s, pkt);
         if (ret < 0) {
             .......
             continue;
         }
         '''av_log(NULL, AV_LOG_FATAL, "pkt->pts = %lld\n", pkt->pts);'''
 How to reproduce:
 # ffplay
 rtsp://10.157.216.98/media/DailyIntegrationTestStream/ts/AVC_High@L2.0_24.000fps_640x400_AAC_LC__2channels.ts

 Press the left arrow key to seek once.

 pkt->pts = 1620000
 pkt->pts = 16166409
 pkt->pts = 1618560
 pkt->pts = 16162509
 ============START============
 ============END==============
 pkt->pts = 1627500  --The new round of seek has residual data from the
 previous round.
 pkt->pts = 2423040
 pkt->pts = 2424960
 pkt->pts = 2426250
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9949>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list