mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
videodecoder: Restrict frame timestamp guessing in reverse mode
Don't guess a timestamp of the start of the segment when running in reverse mode, as more likely it means we're discontinuous somewhere in the middle of the segment, and we'll fix up timestamps once the frames are decoded and reversed.
This commit is contained in:
parent
fcb63e77a9
commit
6ac79da6a2
1 changed files with 1 additions and 1 deletions
|
@ -2773,7 +2773,7 @@ gst_video_decoder_prepare_finish_frame (GstVideoDecoder *
|
|||
if (frame->duration != GST_CLOCK_TIME_NONE) {
|
||||
if (GST_CLOCK_TIME_IS_VALID (priv->last_timestamp_out))
|
||||
frame->pts = priv->last_timestamp_out + frame->duration;
|
||||
else
|
||||
else if (decoder->output_segment.rate > 0.0)
|
||||
frame->pts = decoder->output_segment.start;
|
||||
GST_LOG_OBJECT (decoder,
|
||||
"Guessing timestamp %" GST_TIME_FORMAT " for frame...",
|
||||
|
|
Loading…
Reference in a new issue