nvdec: Respect upstream provided timestamp
Decoder sometimes reports nonincreasing timestamp. Use input frame's timestamp like other decoder elements.
This commit is contained in:
parent
e68bfd7566
commit
f7f9f327cd
@ -536,7 +536,6 @@ parser_display_callback (GstNvDec * nvdec, CUVIDPARSERDISPINFO * dispinfo)
|
|||||||
GST_INFO_OBJECT (nvdec,
|
GST_INFO_OBJECT (nvdec,
|
||||||
"timestamp mismatch, diff: %" GST_STIME_FORMAT,
|
"timestamp mismatch, diff: %" GST_STIME_FORMAT,
|
||||||
GST_STIME_ARGS (GST_CLOCK_DIFF (dispinfo->timestamp, frame->pts)));
|
GST_STIME_ARGS (GST_CLOCK_DIFF (dispinfo->timestamp, frame->pts)));
|
||||||
frame->pts = dispinfo->timestamp;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user