Merge pull request #1031 from Sisyphus-wang/patch-1-fix-Ap4MdhdAtom-npd

Update Ap4MdhdAtom.cpp
This commit is contained in:
Gilles Boccon-Gibod
2025-11-15 09:46:38 +01:00
committed by GitHub

View File

@@ -66,7 +66,7 @@ AP4_MdhdAtom::AP4_MdhdAtom(AP4_UI64 creation_time,
m_TimeScale(time_scale),
m_Duration(duration)
{
if (strlen(language) == 3) {
if (language != 0 && strlen(language) == 3) {
m_Language.Assign(language, 3);
} else {
m_Language = "und";