From 9db205f9f7335dfa86ce4215dabf866e8156758d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 29 May 2011 17:39:38 +0200 Subject: [PATCH] ffmpegdec: Don't discard timestamps if output AND input are in order Avoids bogus timestamps for AVCHD-lite streams --- ext/ffmpeg/gstffmpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index 71fe9e3886..605acb69e5 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -1791,7 +1791,7 @@ gst_ffmpegdec_video_frame (GstFFMpegDec * ffmpegdec, /* we assume DTS as input timestamps unless we see reordered input * timestamps */ - if (!ffmpegdec->reordered_in) { + if (!ffmpegdec->reordered_in && ffmpegdec->reordered_out) { /* PTS and DTS are the same for keyframes */ if (!iskeyframe && ffmpegdec->next_out != -1) { /* interpolate all timestamps except for keyframes, FIXME, this is