mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/imf: fix error CPL root element is absent
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com> Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
parent
07fd34aca7
commit
c1b55cb70c
@ -688,7 +688,7 @@ int ff_imf_parse_cpl_from_xml_dom(xmlDocPtr doc, FFIMFCPL **cpl)
|
||||
}
|
||||
|
||||
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");
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user