mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
ffmpegdec: Don't discard timestamps if output AND input are in order
Avoids bogus timestamps for AVCHD-lite streams
This commit is contained in:
parent
a026c95caf
commit
9db205f9f7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue