avformat/imfdec: don't busy-loop if non-Asset in Asset-list

(cherry picked from commit ef305e32e8)
This commit is contained in:
Timo Rothenpieler authored and ffmpeg-devel committed 2026-10-09 23:24:29 +00:00
1 parent b4a62c3254
commit b37bf81a7a
1 file changed
+1 -2
+1 -2
View File
@@ -227,7 +227,7 @@ static int parse_imf_asset_map_from_xml_dom(AVFormatContext *s,
asset_map->assets = tmp;
asset_element = xmlFirstElementChild(node);
while (asset_element) {
for (; asset_element; asset_element = xmlNextElementSibling(asset_element)) {
if (av_strcasecmp(asset_element->name, "Asset") != 0)
continue;
@@ -267,7 +267,6 @@ static int parse_imf_asset_map_from_xml_dom(AVFormatContext *s,
av_log(s, AV_LOG_DEBUG, "Found asset absolute URI: %s\n", asset->absolute_uri);
asset_map->asset_count++;
asset_element = xmlNextElementSibling(asset_element);
}
return ret;