We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5fcc68 commit 5cf858dCopy full SHA for 5cf858d
src/AvTranscoder/file/InputFile.cpp
@@ -133,6 +133,11 @@ std::string InputFile::getFormatLongName() const
133
134
std::string InputFile::getFormatMimeType() const
135
{
136
+#if LIBAVFORMAT_VERSION_MAJOR <= 55
137
+ LOG_WARN("Cannot get mime type format of '" << _filename << "' because your libavformat library has a major version <= 55.")
138
+ return "not available";
139
+#endif
140
+
141
if( _formatContext.getAVInputFormat().mime_type == NULL )
142
return "unknown";
143
return std::string(_formatContext.getAVInputFormat().mime_type);
0 commit comments