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
@ -1997,7 +1997,7 @@ gst_video_decoder_finish_frame (GstVideoDecoder * decoder,
|
||||
|
||||
/* Check for clipping */
|
||||
start = frame->pts;
|
||||
stop = frame->pts + frame->duration;
|
||||
stop = start >= 0 ? frame->pts + frame->duration : GST_CLOCK_TIME_NONE;
|
||||
|
||||
segment = &decoder->output_segment;
|
||||
if (gst_segment_clip (segment, GST_FORMAT_TIME, start, stop, &start, &stop)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user