Skip to content

Commit

Permalink
Fixed compile error with ffmpeg-5.0.
Browse files Browse the repository at this point in the history
Signed-off-by: bchoi <[email protected]>
  • Loading branch information
bchoineubility committed Mar 8, 2024
1 parent 41a6410 commit 0f57050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion av/src/AudioDecoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ bool AudioDecoder::Decode(uint8_t **_outBuffer, unsigned int *_outBufferSize)
// decodedFrame->linesize[0].
int size = decodedFrame->nb_samples *
av_get_bytes_per_sample(this->data->codecCtx->sample_fmt) *
this->data->codecCtx->ch_layout.nb_channels;
this->data->codecCtx->channels;

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

0 comments on commit 0f57050

Please sign in to comment.