diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 0cd6e646d5..185d637405 100644
|
a
|
b
|
static int get_audio_config(AVFormatContext *s)
|
| 728 | 728 | stream->codecpar->codec_id = ctx->audio_be ? AV_CODEC_ID_PCM_S24BE : AV_CODEC_ID_PCM_S24LE; |
| 729 | 729 | } else if (basic_desc->mFormatID == kAudioFormatLinearPCM && |
| 730 | 730 | ctx->audio_signed_integer && |
| 731 | | ctx->audio_bits_per_sample == 32 && |
| 732 | | ctx->audio_packed) { |
| | 731 | (ctx->audio_bits_per_sample == 32 && ctx->audio_packed || |
| | 732 | ctx->audio_bits_per_sample == 24 && !ctx->audio_packed) |
| | 733 | ) { |
| 733 | 734 | stream->codecpar->codec_id = ctx->audio_be ? AV_CODEC_ID_PCM_S32BE : AV_CODEC_ID_PCM_S32LE; |
| 734 | 735 | } else { |
| 735 | 736 | unlock_frames(ctx); |