summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Nagy <ronag89@gmail.com>2012-04-18 14:32:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-18 15:34:34 +0200
commitc58290e5e51286ee280e9e354dde793528942d53 (patch)
treed67e76729368f395bb4871285856cd3f787cfc33
parent9ed388f5985992a0a6a43fdc0b1732962b6b5619 (diff)
downloadffmpeg-streaming-c58290e5e51286ee280e9e354dde793528942d53.zip
ffmpeg-streaming-c58290e5e51286ee280e9e354dde793528942d53.tar.gz
Reset pts_correction state on codec flush.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/utils.c3
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)
OpenPOWER on IntegriCloud