mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
h265parse: Ensure correct timestamps
If the input has a miss-placed filler zero byte (e.g. a filler without a 4 bytes start code on the next NAL), we would endup using the same timestamp twice. Ask the base class to read the timestamp from the buffer were the NAL actually starts. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1251>
This commit is contained in:
parent
80524fb3da
commit
3784bd4a73
1 changed files with 4 additions and 0 deletions
|
@ -1216,6 +1216,10 @@ gst_h265_parse_handle_frame (GstBaseParse * parse,
|
|||
("Error parsing H.265 stream"), ("Invalid H.265 stream"));
|
||||
goto invalid_stream;
|
||||
}
|
||||
|
||||
/* Ensure we use the TS of the first NAL. This avoids broken timestamp in
|
||||
* the case of a miss-placed filler byte. */
|
||||
gst_base_parse_set_ts_at_offset (parse, nalu.offset);
|
||||
}
|
||||
|
||||
while (TRUE) {
|
||||
|
|
Loading…
Reference in a new issue