File tree Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,6 @@ void InputFile::seekAtFrame( const size_t frame )
147
147
double fps = 1 ;
148
148
if ( _properties.getNbVideoStreams () )
149
149
fps = _properties.getVideoProperties ().at ( 0 ).getFps ();
150
- else if ( _properties.getNbAudioStreams () )
151
- fps = _properties.getAudioProperties ().at ( 0 ).getFps ();
152
150
153
151
uint64_t pos = frame / fps * AV_TIME_BASE;
154
152
Original file line number Diff line number Diff line change @@ -189,15 +189,6 @@ Rational AudioProperties::getTimeBase() const
189
189
return timeBase;
190
190
}
191
191
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
-
201
192
double AudioProperties::getDuration () const
202
193
{
203
194
Rational timeBase = getTimeBase ();
@@ -224,7 +215,6 @@ PropertiesMap AudioProperties::getPropertiesAsMap() const
224
215
detail::add ( dataMap, " channelDescription" , getChannelDescription () );
225
216
detail::add ( dataMap, " ticksPerFrame" , getTicksPerFrame () );
226
217
detail::add ( dataMap, " timeBase" , getTimeBase () );
227
- detail::add ( dataMap, " fps" , getFps () );
228
218
detail::add ( dataMap, " duration" , getDuration () );
229
219
230
220
for ( size_t metadataIndex = 0 ; metadataIndex < _metadatas.size (); ++metadataIndex )
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ class AvExport AudioProperties
35
35
36
36
size_t getTicksPerFrame () const ;
37
37
Rational getTimeBase () const ;
38
- double getFps () const ; // /< Corresponds to the number of audio samples for one video frame
39
38
double getDuration () const ;
40
39
41
40
PropertiesMap& getMetadatas () { return _metadatas; }
You can’t perform that action at this time.
0 commit comments