mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
Reset pts_correction state on codec flush.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9ed388f598
commit
c58290e5e5
@ -1879,6 +1879,9 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
|
||||
ff_thread_flush(avctx);
|
||||
else if(avctx->codec->flush)
|
||||
avctx->codec->flush(avctx);
|
||||
|
||||
avctx->pts_correction_last_pts =
|
||||
avctx->pts_correction_last_dts = INT64_MIN;
|
||||
}
|
||||
|
||||
static void video_free_buffers(AVCodecContext *s)
|
||||
|
Loading…
Reference in New Issue
Block a user