[FFmpeg-cvslog] Reset pts_correction state on codec flush.
Robert Nagy
git at videolan.org
Wed Apr 18 17:15:55 CEST 2012
ffmpeg | branch: master | Robert Nagy <ronag89 at gmail.com> | Wed Apr 18 14:32:27 2012 +0200| [c58290e5e51286ee280e9e354dde793528942d53] | committer: Michael Niedermayer
Reset pts_correction state on codec flush.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c58290e5e51286ee280e9e354dde793528942d53
---
libavcodec/utils.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f6c9466..c6e4012 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list