PR #24962 opened by Timo Rothenpieler (BtbN) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24962 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24962.patch
>From dcdaa4185f5d193ba09d88350d9c96546f390562 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler <[email protected]> Date: Fri, 9 Oct 2026 02:59:02 +0200 Subject: [PATCH] avformat/imfdec: don't busy-loop if non-Asset in Asset-list --- libavformat/imfdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 761960e544..84b7a4d6e3 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -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; @@ -280,7 +280,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; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
