Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Aug 31, 2024
1 parent 7f5b51c commit 56ddbf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipeline/ExternVocoderStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ std::shared_ptr<short> ExternVocoderStep::execute(std::shared_ptr<short> inputSa

// Read and return output samples from thread.
*numOutputSamples = codec2_fifo_used(outputSampleFifo_);
*numOutputSamples = std::min(*numOutputSamples, MAX_OUTPUT_SAMPLES);
if (*numOutputSamples > 0)
{
*numOutputSamples = std::min(*numOutputSamples, MAX_OUTPUT_SAMPLES);
outputSamples = new short[*numOutputSamples];
assert(outputSamples != nullptr);

Expand Down

0 comments on commit 56ddbf5

Please sign in to comment.