Skip to content

Commit b323fbc

Browse files
author
Clement Champetier
committed
AvInputAudio: rename getNextFrame to decodeNextFrame
This private function decodes the next frame (call avcodec_decode_audio4).
1 parent c90265e commit b323fbc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/AvTranscoder/essenceStream/AvInputAudio.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void AvInputAudio::setup()
8282

8383
bool AvInputAudio::readNextFrame( Frame& frameBuffer )
8484
{
85-
if( ! getNextFrame() )
85+
if( ! decodeNextFrame() )
8686
return false;
8787

8888
AVCodecContext* avCodecContext = _codec.getAVCodecContext();
@@ -116,7 +116,7 @@ bool AvInputAudio::readNextFrame( Frame& frameBuffer )
116116

117117
bool AvInputAudio::readNextFrame( Frame& frameBuffer, const size_t subStreamIndex )
118118
{
119-
if( ! getNextFrame() )
119+
if( ! decodeNextFrame() )
120120
return false;
121121

122122
const int output_nbChannels = 1;
@@ -156,7 +156,7 @@ bool AvInputAudio::readNextFrame( Frame& frameBuffer, const size_t subStreamInde
156156
return true;
157157
}
158158

159-
bool AvInputAudio::getNextFrame()
159+
bool AvInputAudio::decodeNextFrame()
160160
{
161161
int got_frame = 0;
162162
while( ! got_frame )

src/AvTranscoder/essenceStream/AvInputAudio.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AvExport AvInputAudio : public IInputEssence
2323
bool readNextFrame( Frame& frameBuffer, const size_t subStreamIndex );
2424

2525
private:
26-
bool getNextFrame();
26+
bool decodeNextFrame();
2727

2828
AvInputStream* _inputStream;
2929
AudioCodec _codec;

0 commit comments

Comments
 (0)