mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
videodecoder: do not do timestamp arithmetic from an invalid timestamp
This fixes untimestampped buffers from being rejected by the segment clipper. https://bugzilla.gnome.org/show_bug.cgi?id=676022
This commit is contained in:
parent
37d45cdab8
commit
d7ee6a9c57
1 changed files with 1 additions and 1 deletions
|
@ -1997,7 +1997,7 @@ gst_video_decoder_finish_frame (GstVideoDecoder * decoder,
|
||||||
|
|
||||||
/* Check for clipping */
|
/* Check for clipping */
|
||||||
start = frame->pts;
|
start = frame->pts;
|
||||||
stop = frame->pts + frame->duration;
|
stop = start >= 0 ? frame->pts + frame->duration : GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
segment = &decoder->output_segment;
|
segment = &decoder->output_segment;
|
||||||
if (gst_segment_clip (segment, GST_FORMAT_TIME, start, stop, &start, &stop)) {
|
if (gst_segment_clip (segment, GST_FORMAT_TIME, start, stop, &start, &stop)) {
|
||||||
|
|
Loading…
Reference in a new issue