mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
qtdemux: Ignore raw audio streams when adjusting seek
Because we treat raw audio chunks/samples as keyframes, they were interfering with seek time adjustment. Became apparent when the accompanying video stream was I-frame only, for example ProRes. Since raw audio streams can be seeked freely, it's fine to just ignore them here, giving priority to the real keyframes in the video stream. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4946>
This commit is contained in:
parent
cef1f179c6
commit
4037334143
1 changed files with 4 additions and 0 deletions
|
@ -1152,6 +1152,10 @@ gst_qtdemux_adjust_seek (GstQTDemux * qtdemux, gint64 desired_time,
|
|||
if (CUR_STREAM (str)->sparse && !use_sparse)
|
||||
continue;
|
||||
|
||||
/* raw audio streams can be ignored as we can seek anywhere within them */
|
||||
if (str->subtype == FOURCC_soun && str->need_clip)
|
||||
continue;
|
||||
|
||||
seg_idx = gst_qtdemux_find_segment (qtdemux, str, desired_time);
|
||||
GST_DEBUG_OBJECT (qtdemux, "align segment %d", seg_idx);
|
||||
|
||||
|
|
Loading…
Reference in a new issue