isoff: Fix earliest pts field parse issue

earliest pts will be covered by first_offset field on version 0 case.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2934>
This commit is contained in:
zhiyuan.liu 2022-08-23 10:28:30 +00:00 committed by Tim-Philipp Müller
parent d2110dfe1d
commit ede7bf44cf

View file

@ -113,7 +113,7 @@ gst_isoff_qt_sidx_parser_add_data (GstSidxParser * parser,
if (parser->sidx.version == 0) {
parser->sidx.earliest_pts =
gst_byte_reader_get_uint32_be_unchecked (&reader);
parser->sidx.first_offset = parser->sidx.earliest_pts =
parser->sidx.first_offset =
gst_byte_reader_get_uint32_be_unchecked (&reader);
} else {
parser->sidx.earliest_pts =