Skip to content
Snippets Groups Projects
Unverified Commit c1b55cb7 authored by Pierre-Anthony Lemieux's avatar Pierre-Anthony Lemieux Committed by Zane van Iperen
Browse files

avformat/imf: fix error CPL root element is absent


Signed-off-by: default avatarPierre-Anthony Lemieux <pal@palemieux.com>
Signed-off-by: default avatarZane van Iperen <zane@zanevaniperen.com>
parent 07fd34ac
No related branches found
No related tags found
No related merge requests found
...@@ -688,7 +688,7 @@ int ff_imf_parse_cpl_from_xml_dom(xmlDocPtr doc, FFIMFCPL **cpl) ...@@ -688,7 +688,7 @@ int ff_imf_parse_cpl_from_xml_dom(xmlDocPtr doc, FFIMFCPL **cpl)
} }
cpl_element = xmlDocGetRootElement(doc); cpl_element = xmlDocGetRootElement(doc);
if (xmlStrcmp(cpl_element->name, "CompositionPlaylist")) { if (!cpl_element || xmlStrcmp(cpl_element->name, "CompositionPlaylist")) {
av_log(NULL, AV_LOG_ERROR, "The root element of the CPL is not CompositionPlaylist\n"); av_log(NULL, AV_LOG_ERROR, "The root element of the CPL is not CompositionPlaylist\n");
ret = AVERROR_INVALIDDATA; ret = AVERROR_INVALIDDATA;
goto cleanup; goto cleanup;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment