Skip to content

Commit b6dc069

Browse files
author
Clement Champetier
committed
StreamTranscoder: update log message when checking the next audio buffers
1 parent a66c49d commit b6dc069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,14 +553,14 @@ bool StreamTranscoder::processTranscode()
553553
const int nbInputSamplesPerChannel = _decodedData.at(0)->getAVFrame().nb_samples;
554554
if(nbInputSamplesPerChannel > _filteredData->getAVFrame().nb_samples)
555555
{
556-
LOG_WARN("The buffer of filtered data is too small: reallocate it.")
556+
LOG_WARN("The buffer of filtered data corresponds to a frame of " << _filteredData->getAVFrame().nb_samples << " samples. The decoded buffer contains " << nbInputSamplesPerChannel << " samples. Reallocate it.")
557557
_filteredData->freeData();
558558
_filteredData->getAVFrame().nb_samples = nbInputSamplesPerChannel;
559559
_filteredData->allocateData();
560560
}
561561
if(nbInputSamplesPerChannel > _transformedData->getAVFrame().nb_samples)
562562
{
563-
LOG_WARN("The buffer of transformed data is too small: reallocate it.")
563+
LOG_WARN("The buffer of transformed data corresponds to a frame of " << _transformedData->getAVFrame().nb_samples << " samples. The decoded buffer contains " << nbInputSamplesPerChannel << " samples. Reallocate it.")
564564
_transformedData->freeData();
565565
_transformedData->getAVFrame().nb_samples = nbInputSamplesPerChannel;
566566
_transformedData->allocateData();

0 commit comments

Comments
 (0)