Skip to content

Commit

Permalink
[Session] Changed unknown SampleDescription warning log to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Aug 21, 2023
1 parent cc964c8 commit 3bfe38f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1609,9 +1609,13 @@ AP4_Movie* CSession::CreateMovieAtom(CStream* stream)
}
else
{
LOG::LogF(LOGWARNING,
"Created sample desciption atom of unknown type, codec \"%s\" is not handled",
stream->m_info.GetCodecName().c_str());
// Codecs like audio types, will have unknown SampleDescription, because to create an appropriate
// audio SampleDescription atom require different code rework. This means also that CFragmentedSampleReader
// will use a generic CodecHandler instead of AudioCodecHandler, because will be not able do determine the codec
LOG::LogF(
LOGDEBUG,
"Created sample description atom of unknown type for codec \"%s\" because unhandled",
stream->m_info.GetCodecName().c_str());
sampleDesc = new AP4_SampleDescription(AP4_SampleDescription::TYPE_UNKNOWN, 0, 0);
}

Expand Down

0 comments on commit 3bfe38f

Please sign in to comment.