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:
Piotr Brzeziński 2023-06-29 15:20:29 +02:00 committed by GStreamer Marge Bot
parent cef1f179c6
commit 4037334143

View file

@ -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);