Ticket #9502: 24unpacked.patch

File 24unpacked.patch, 809 bytes (added by Thilo Borgmann, 5 years ago)
  • libavdevice/avfoundation.m

    diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
    index 0cd6e646d5..185d637405 100644
    a b static int get_audio_config(AVFormatContext *s)  
    728728        stream->codecpar->codec_id = ctx->audio_be ? AV_CODEC_ID_PCM_S24BE : AV_CODEC_ID_PCM_S24LE;
    729729    } else if (basic_desc->mFormatID == kAudioFormatLinearPCM &&
    730730        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        ) {
    733734        stream->codecpar->codec_id = ctx->audio_be ? AV_CODEC_ID_PCM_S32BE : AV_CODEC_ID_PCM_S32LE;
    734735    } else {
    735736        unlock_frames(ctx);