File tree Expand file tree Collapse file tree 4 files changed +30
-12
lines changed Expand file tree Collapse file tree 4 files changed +30
-12
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,20 @@ InputStream& InputFile::getStream( size_t index )
120
120
std::string InputFile::getFormatName () const
121
121
{
122
122
if ( _formatContext.getAVInputFormat ().name == NULL )
123
- return " unknown" ;
123
+ {
124
+ LOG_WARN (" Unknown demuxer format name of '" << _filename << " '." )
125
+ return " " ;
126
+ }
124
127
return std::string (_formatContext.getAVInputFormat ().name );
125
128
}
126
129
127
130
std::string InputFile::getFormatLongName () const
128
131
{
129
132
if ( _formatContext.getAVInputFormat ().long_name == NULL )
130
- return " unknown" ;
133
+ {
134
+ LOG_WARN (" Unknown demuxer format long name of '" << _filename << " '." )
135
+ return " " ;
136
+ }
131
137
return std::string (_formatContext.getAVInputFormat ().long_name );
132
138
}
133
139
@@ -138,7 +144,10 @@ std::string InputFile::getFormatMimeType() const
138
144
return " not available" ;
139
145
#else
140
146
if ( _formatContext.getAVInputFormat ().mime_type == NULL )
141
- return " unknown" ;
147
+ {
148
+ LOG_WARN (" Unknown demuxer format mime type of '" << _filename << " '." )
149
+ return " " ;
150
+ }
142
151
return std::string (_formatContext.getAVInputFormat ().mime_type );
143
152
#endif
144
153
}
Original file line number Diff line number Diff line change @@ -78,17 +78,17 @@ class AvExport InputFile
78
78
std::string getFilename () const { return _filename; }
79
79
80
80
/* *
81
- * @brief A comma separated list of short names for the format, or unknown.
81
+ * @brief A comma separated list of short names for the format, or empty if unknown.
82
82
*/
83
83
std::string getFormatName () const ;
84
84
85
85
/* *
86
- * @brief Descriptive name for the format, meant to be more human-readable than name, or unknown.
86
+ * @brief Descriptive name for the format, meant to be more human-readable than name, or empty if unknown.
87
87
*/
88
88
std::string getFormatLongName () const ;
89
89
90
90
/* *
91
- * @brief Comma-separated list of mime types, or unknown.
91
+ * @brief Comma-separated list of mime types, or empty if unknown.
92
92
*/
93
93
std::string getFormatMimeType () const ;
94
94
Original file line number Diff line number Diff line change @@ -88,21 +88,30 @@ IOutputStream& OutputFile::getStream( const size_t streamId )
88
88
std::string OutputFile::getFormatName () const
89
89
{
90
90
if ( _formatContext.getAVOutputFormat ().name == NULL )
91
- return " unknown" ;
91
+ {
92
+ LOG_WARN (" Unknown muxer format name of '" << _filename << " '." )
93
+ return " " ;
94
+ }
92
95
return std::string (_formatContext.getAVOutputFormat ().name );
93
96
}
94
97
95
98
std::string OutputFile::getFormatLongName () const
96
99
{
97
100
if ( _formatContext.getAVOutputFormat ().long_name == NULL )
98
- return " unknown" ;
101
+ {
102
+ LOG_WARN (" Unknown muxer format long name of '" << _filename << " '." )
103
+ return " " ;
104
+ }
99
105
return std::string (_formatContext.getAVOutputFormat ().long_name );
100
106
}
101
107
102
108
std::string OutputFile::getFormatMimeType () const
103
109
{
104
110
if ( _formatContext.getAVOutputFormat ().mime_type == NULL )
105
- return " unknown" ;
111
+ {
112
+ LOG_WARN (" Unknown muxer format mime type of '" << _filename << " '." )
113
+ return " " ;
114
+ }
106
115
return std::string (_formatContext.getAVOutputFormat ().mime_type );
107
116
}
108
117
Original file line number Diff line number Diff line change @@ -57,17 +57,17 @@ class AvExport OutputFile : public IOutputFile
57
57
std::string getFilename () const { return _filename; }
58
58
59
59
/* *
60
- * @brief A comma separated list of short names for the format, or unknown.
60
+ * @brief A comma separated list of short names for the format, or empty if unknown.
61
61
*/
62
62
std::string getFormatName () const ;
63
63
64
64
/* *
65
- * @brief Descriptive name for the format, meant to be more human-readable than name, or unknown.
65
+ * @brief Descriptive name for the format, meant to be more human-readable than name, or empty if unknown.
66
66
*/
67
67
std::string getFormatLongName () const ;
68
68
69
69
/* *
70
- * @brief Comma-separated list of mime types, or unknown.
70
+ * @brief Comma-separated list of mime types, or empty if unknown.
71
71
*/
72
72
std::string getFormatMimeType () const ;
73
73
You can’t perform that action at this time.
0 commit comments