File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -172,4 +172,11 @@ std::string getFormat( const std::string& filename )
172
172
return format;
173
173
}
174
174
175
+ bool matchFormat ( const std::string& format, const std::string& filename )
176
+ {
177
+ AVOutputFormat* avOutputFormat = av_guess_format ( format.c_str (), filename.c_str (), NULL );
178
+ return avOutputFormat != NULL ;
179
+ }
180
+
181
+
175
182
}
Original file line number Diff line number Diff line change @@ -82,12 +82,13 @@ class ParamSet
82
82
void * _objContext;
83
83
};
84
84
85
- void split ( std::vector< std::string >& splitedString, const std::string& inputString, const std::string& splitChars = " ;" );
86
85
86
+ void split ( std::vector< std::string >& splitedString, const std::string& inputString, const std::string& splitChars = " ;" );
87
87
int getFilesInDir ( const std::string& dir, std::vector< std::string >& files );
88
88
89
89
90
90
std::string getFormat ( const std::string& filename );
91
+ bool matchFormat ( const std::string& format, const std::string& filename );
91
92
92
93
}
93
94
You can’t perform that action at this time.
0 commit comments