You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avformat/imf_cpl: Replace NULL content_title_utf8 by ""
Suggested-by: Pierre-Anthony Lemieux <pal@sandflow.com>
Reviewed-by: Pierre-Anthony Lemieux <pal@sandflow.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ac3e6b74bd
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@ -177,6 +177,10 @@ static int fill_content_title(xmlNodePtr cpl_element, FFIMFCPL *cpl)
|
|||||||
cpl->content_title_utf8 = xmlNodeListGetString(cpl_element->doc,
|
cpl->content_title_utf8 = xmlNodeListGetString(cpl_element->doc,
|
||||||
element->xmlChildrenNode,
|
element->xmlChildrenNode,
|
||||||
1);
|
1);
|
||||||
|
if (!cpl->content_title_utf8)
|
||||||
|
cpl->content_title_utf8 = xmlStrdup("");
|
||||||
|
if (!cpl->content_title_utf8)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user