This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/5.1
in repository ffmpeg.

The following commit(s) were added to refs/heads/release/5.1 by this push:
     new 8572ebd8a8 avformat/imfdec: don't busy-loop if non-Asset in Asset-list
8572ebd8a8 is described below

commit 8572ebd8a8a5852ae3bd8dff831ad1fac051acad
Author:     Timo Rothenpieler <[email protected]>
AuthorDate: Fri Oct 9 02:59:02 2026 +0200
Commit:     ffmpeg-devel <[email protected]>
CommitDate: Fri Oct 9 23:24:18 2026 +0000

    avformat/imfdec: don't busy-loop if non-Asset in Asset-list
    
    (cherry picked from commit ef305e32e8b159699cc4a76fbddcfb8ff210a8c7)
---
 libavformat/imfdec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c
index 71dfb26958..ec67b49a02 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;
 
@@ -262,7 +262,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;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to