Skip to content

Commit 53b3033

Browse files
author
Clement Champetier
committed
InputFile: removed static method analyseFile
* We cannot access properties of the returned object since the local InputFile of the method is deleted (scope of the method). * Is not used and not tested.
1 parent f1b6360 commit 53b3033

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/AvTranscoder/file/InputFile.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ void InputFile::analyse(IProgress& progress, const EAnalyseLevel level)
5353
_properties->extractStreamProperties(progress, level);
5454
}
5555

56-
FileProperties InputFile::analyseFile(const std::string& filename, IProgress& progress, const EAnalyseLevel level)
57-
{
58-
InputFile file(filename);
59-
file.analyse(progress, level);
60-
return file.getProperties();
61-
}
62-
6356
bool InputFile::readNextPacket(CodedData& data, const size_t streamIndex)
6457
{
6558
bool nextPacketFound = false;

src/AvTranscoder/file/InputFile.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,6 @@ class AvExport InputFile
8787
*/
8888
virtual void setupUnwrapping(const ProfileLoader::Profile& profile);
8989

90-
public:
91-
/**
92-
* @brief Get media file properties using static method.
93-
* @param filename input filename
94-
* @param progress callback to get analysis progression
95-
* @return structure of media metadatas
96-
**/
97-
static FileProperties analyseFile(const std::string& filename, IProgress& progress,
98-
const EAnalyseLevel level = eAnalyseLevelFirstGop);
99-
10090
private:
10191
/**
10292
* @brief Get Fps from first video stream

0 commit comments

Comments
 (0)