qtdemux: Don't retrieve enca/encv boxes a second time, wrongly

They need to be retrieved by index and they were already correctly retrieved
just above so let's just use that.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8929>
This commit is contained in:
Sebastian Dröge 2025-05-04 15:58:03 +03:00 committed by GStreamer Marge Bot
parent bb50741b73
commit a6e58f7331

View File

@ -14751,11 +14751,9 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak, guint32 * mvhd_matrix)
}
if (fourcc == FOURCC_encv || fourcc == FOURCC_enca) {
/* FIXME this looks wrong, there might be multiple children
* with the same type */
GNode *enc = qtdemux_tree_get_child_by_type (stsd, fourcc);
stream->protected = TRUE;
if (!qtdemux_parse_protection_scheme_info (qtdemux, stream, enc, &fourcc)) {
if (!qtdemux_parse_protection_scheme_info (qtdemux, stream, stsd_entry,
&fourcc)) {
GST_ERROR_OBJECT (qtdemux, "Failed to parse protection scheme info");
goto corrupt_file;
}