Skip to content

Commit a9ebba0

Browse files
author
Clement Champetier
committed
AudioProperties: remove getFps
1 parent 0ad68ca commit a9ebba0

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

src/AvTranscoder/file/InputFile.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ void InputFile::seekAtFrame( const size_t frame )
147147
double fps = 1;
148148
if( _properties.getNbVideoStreams() )
149149
fps = _properties.getVideoProperties().at( 0 ).getFps();
150-
else if( _properties.getNbAudioStreams() )
151-
fps = _properties.getAudioProperties().at( 0 ).getFps();
152150

153151
uint64_t pos = frame / fps * AV_TIME_BASE;
154152

src/AvTranscoder/mediaProperty/AudioProperties.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,6 @@ Rational AudioProperties::getTimeBase() const
189189
return timeBase;
190190
}
191191

192-
double AudioProperties::getFps() const
193-
{
194-
Rational timeBase = getTimeBase();
195-
double fps = timeBase.den / (double) timeBase.num;
196-
if( isinf( fps ) )
197-
fps = 0.0;
198-
return fps;
199-
}
200-
201192
double AudioProperties::getDuration() const
202193
{
203194
Rational timeBase = getTimeBase();
@@ -224,7 +215,6 @@ PropertiesMap AudioProperties::getPropertiesAsMap() const
224215
detail::add( dataMap, "channelDescription", getChannelDescription() );
225216
detail::add( dataMap, "ticksPerFrame", getTicksPerFrame() );
226217
detail::add( dataMap, "timeBase", getTimeBase() );
227-
detail::add( dataMap, "fps", getFps() );
228218
detail::add( dataMap, "duration", getDuration() );
229219

230220
for( size_t metadataIndex = 0; metadataIndex < _metadatas.size(); ++metadataIndex )

src/AvTranscoder/mediaProperty/AudioProperties.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class AvExport AudioProperties
3535

3636
size_t getTicksPerFrame() const;
3737
Rational getTimeBase() const;
38-
double getFps() const; ///< Corresponds to the number of audio samples for one video frame
3938
double getDuration() const;
4039

4140
PropertiesMap& getMetadatas() { return _metadatas; }

0 commit comments

Comments
 (0)