mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
avformat/imfdec: don't busy-loop if non-Asset in Asset-list
(cherry picked from commit ef305e32e8)
This commit is contained in:
1 parent
b4a62c3254
commit
b37bf81a7a
1 file changed
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user