[FFmpeg-devel] [PATCH v1] avformat/imf: fix error CPL root element is absent

Zane van Iperen zane at zanevaniperen.com
Wed Jan 5 02:37:08 EET 2022



On 4/1/22 16:11, pal at sandflow.com wrote:
>       cpl_element = xmlDocGetRootElement(doc);
> -    if (xmlStrcmp(cpl_element->name, "CompositionPlaylist")) {
> +    if ((!cpl_element) || xmlStrcmp(cpl_element->name, "CompositionPlaylist")) {

Nit: Extra set of parens around "!cpl_element".

Otherwise, this lgtm, I'll apply and backport this soon with that change.




More information about the ffmpeg-devel mailing list