[FFmpeg-trac] #11645(avcodec:new): pts_correction_num_faulty is not reset in ff_decode_flush_buffers
FFmpeg
trac at avcodec.org
Wed Jun 25 20:02:47 EEST 2025
#11645: pts_correction_num_faulty is not reset in ff_decode_flush_buffers
---------------------------------+---------------------------------------
Reporter: keks51 | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+---------------------------------------
Summary of the bug:
Sometimes the guess_correct_pts is incorrect since
pts_correction_num_faulty_pts and pts_correction_num_faulty_dts are not
cleaned in ff_decode_flush_buffers.
just add 2 lines here
https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavcodec/decode.c#l2220:
dc->pts_correction_num_faulty_pts =
dc->pts_correction_num_faulty_dts = 0;
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11645>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list