Skip to content

Commit

Permalink
Fix deprecation warning from new ffmpeg (#416)
Browse files Browse the repository at this point in the history
Closes #415

Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored Aug 10, 2022
1 parent a27c7a1 commit 5d576ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion av/src/AudioDecoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ bool AudioDecoder::Decode(uint8_t **_outBuffer, unsigned int *_outBufferSize)
// decodedFrame->linesize[0].
int size = decodedFrame->nb_samples *
av_get_bytes_per_sample(this->dataPtr->codecCtx->sample_fmt) *
this->dataPtr->codecCtx->channels;
this->dataPtr->codecCtx->ch_layout.nb_channels;

// Resize the audio buffer as necessary
if (*_outBufferSize + size > maxBufferSize)
Expand Down

0 comments on commit 5d576ba

Please sign in to comment.