File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,6 @@ extern "C" {
12
12
namespace avtranscoder
13
13
{
14
14
15
- std::string getFormat ( const std::string& filename )
16
- {
17
- std::string format ( " " );
18
-
19
- AVOutputFormat* avOutputFormat = av_guess_format ( NULL , filename.c_str (), NULL );
20
- if ( avOutputFormat )
21
- {
22
- if ( avOutputFormat->name )
23
- format = std::string ( avOutputFormat->name );
24
- }
25
-
26
- return format;
27
- }
28
-
29
15
bool matchFormat ( const std::string& format, const std::string& filename )
30
16
{
31
17
AVOutputFormat* avOutputFormat = av_guess_format ( format.c_str (), filename.c_str (), NULL );
Original file line number Diff line number Diff line change @@ -19,11 +19,6 @@ namespace avtranscoder
19
19
typedef std::map<std::string, OptionArray> OptionArrayMap;
20
20
typedef std::vector< std::pair<std::string, std::string> > NamesArray; // < short/long names of format/video codec/audio codec
21
21
22
- /* *
23
- * @brief Get format name from a given filename
24
- */
25
- std::string AvExport getFormat ( const std::string& filename );
26
-
27
22
/* *
28
23
* @brief Check if a format name corresponds to the format of a given filename
29
24
*/
You can’t perform that action at this time.
0 commit comments