Skip to content

Commit

Permalink
Fix for ffmpeg update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenBaert committed Oct 5, 2024
1 parent 6f05c7d commit 8a6dc80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AV/Output/AudioEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ bool AudioEncoder::EncodeFrame(AVFrameWrapper* frame) {
assert((unsigned int) frame->GetFrame()->nb_samples == GetFrameSize());
#endif
#if SSR_USE_AVFRAME_CHANNELS
assert(frame->GetFrame()->channels == GetCodecContext()->channels);
#if LIBAVCODEC_VERSION_MAJOR < 61
assert(frame->GetFrame()->channels == GetCodecContext()->channels);
#else
assert(frame->GetFrame()->ch_layout.nb_channels == GetCodecContext()->ch_layout.nb_channels);
#endif
#endif
#if SSR_USE_AVFRAME_SAMPLE_RATE
assert(frame->GetFrame()->sample_rate == GetCodecContext()->sample_rate);
Expand Down

0 comments on commit 8a6dc80

Please sign in to comment.