mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-18 15:04:53 -05:00
win-dshow: Fix compiling with FFmpeg 7.0
This commit is contained in:
@@ -265,8 +265,13 @@ bool ffmpeg_decode_audio(struct ffmpeg_decode *decode, uint8_t *data,
|
||||
|
||||
audio->samples_per_sec = decode->frame->sample_rate;
|
||||
audio->format = convert_sample_format(decode->frame->format);
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 24, 100)
|
||||
audio->speakers =
|
||||
convert_speaker_layout((uint8_t)decode->decoder->channels);
|
||||
#else
|
||||
audio->speakers = convert_speaker_layout(
|
||||
(uint8_t)decode->decoder->ch_layout.nb_channels);
|
||||
#endif
|
||||
|
||||
audio->frames = decode->frame->nb_samples;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user