Browse Source

Reset pts_correction state on codec flush.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Robert Nagy Michael Niedermayer 14 years ago
parent
commit
c58290e5e5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/utils.c

+ 3
- 0
libavcodec/utils.c View File

@@ -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…
Cancel
Save