Skip to content

Commit cf93459

Browse files
author
Clement Champetier
committed
AudioFrame: fix get/set function of fps
The type is double.
1 parent 8321943 commit cf93459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/frame/AudioFrame.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AvExport AudioFrameDesc
3131

3232
size_t getSampleRate() const { return _sampleRate; }
3333
size_t getChannels() const { return _channels; }
34-
size_t getFps() const { return _fps; }
34+
double getFps() const { return _fps; }
3535
AVSampleFormat getSampleFormat() const { return _sampleFormat; }
3636
std::string getSampleFormatName() const
3737
{
@@ -53,7 +53,7 @@ class AvExport AudioFrameDesc
5353

5454
void setSampleRate( const size_t sampleRate ) { _sampleRate = sampleRate; }
5555
void setChannels( const size_t channels ) { _channels = channels; }
56-
void setFps( const size_t fps ) { _fps = fps; }
56+
void setFps( const double fps ) { _fps = fps; }
5757
void setSampleFormat( const std::string& sampleFormatName ) { _sampleFormat = av_get_sample_fmt( sampleFormatName.c_str() ); }
5858
void setSampleFormat( const AVSampleFormat sampleFormat ) { _sampleFormat = sampleFormat; }
5959

0 commit comments

Comments
 (0)