Commit c58290e5 authored by Robert Nagy's avatar Robert Nagy Committed by Michael Niedermayer

Reset pts_correction state on codec flush.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9ed388f5
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment