mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
qtdemux: convert some more mov format timestamp to gst time
This commit is contained in:
parent
7955c01f19
commit
2a22e9d487
1 changed files with 4 additions and 0 deletions
|
@ -1988,6 +1988,10 @@ gst_qtdemux_seek_to_previous_keyframe (GstQTDemux * qtdemux)
|
||||||
}
|
}
|
||||||
ref_str->segment_index--;
|
ref_str->segment_index--;
|
||||||
seg = &ref_str->segments[ref_str->segment_index];
|
seg = &ref_str->segments[ref_str->segment_index];
|
||||||
|
/* convert seg->media_start to mov format time for timestamp comparison */
|
||||||
|
seg_media_start_mov =
|
||||||
|
gst_util_uint64_scale (seg->media_start, ref_str->timescale,
|
||||||
|
GST_SECOND);
|
||||||
}
|
}
|
||||||
/* Calculate time position of the keyframe and where we should stop */
|
/* Calculate time position of the keyframe and where we should stop */
|
||||||
k_pos =
|
k_pos =
|
||||||
|
|
Loading…
Reference in a new issue