From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id A25C54204A for ; Sun, 24 Apr 2022 23:56:37 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B2C5468B27B; Mon, 25 Apr 2022 02:56:34 +0300 (EEST) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C2EB468AACC for ; Mon, 25 Apr 2022 02:56:28 +0300 (EEST) Received: by mail-ot1-f46.google.com with SMTP id 88-20020a9d0ee1000000b005d0ae4e126fso9726215otj.5 for ; Sun, 24 Apr 2022 16:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rHQQfSsPts66SOt6JAw/Zj89GQLJ69NjSVeV4DctNjU=; b=SlP06rZPcB+HytbhttB4jz1zlFKAq3kJ53jdncg4XUWBxYnpnCkWSRnpaUGxdmkWm0 vWT/7tsTegiFg784S4yW0AmNQpuOVJ2S0sK+iU60mCY6DLFrKjajnqZ9TRxBz9hgwDER CDY0OB3aG9B2dxOV7tlGqfXbVdhY16qQzNKLlkrweK3EnH0R5edRBi0HIO1kAxTECes7 hPxGBUp/8/jed3vSy29XyBYvuHkwWnhM0wT/SCkXO6xbmN1X1HN/3dizFmIzANDg77c2 VGnzS9GvMl5hOqI+QeAzSnLqhbYlQZApbFuigU6U6A4xRNx+uHINslmEykGIAze30I8X 0g/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rHQQfSsPts66SOt6JAw/Zj89GQLJ69NjSVeV4DctNjU=; b=TlvGSuQNfCrvsq9I5XvyMj29+W2PLa0HKCOOd6TCGPWqIed6TgL0ueaMCC0dFyo+qU kPlAs45gq7yI5eUtKwTLEJc8+zr1Z1x4W6B2sU6mUSk5Z+IB+yR44NtVGXWz0GgWXz6m BbTAn7uc3to+QucQ7Jh/1eayi+Vor+zlUhqpbjLUn2H93P1+keWqjCdggniwKr7rc4MF i1rRa9OZzWSEtquKzcva7Q1wpO4f144+KJn2L8GCIt/dDZORLDWrf8KwwhwvfXYopD9t ELHOhvXs9faP9rFOor0jr+P5XmBQuZjLTqdNEwnuctvvMnAXhB1BIASrOVTVKcFJxhWX fN0A== X-Gm-Message-State: AOAM530PzJl/LPrkvgsDsGfThEkEcfMQQu1ugKVm46TPPqP9iIlft3gK 2OfG1XbG/OBdUz9UsrgkOPWGdgZZax60n3mNeUSv3WCkbk0= X-Google-Smtp-Source: ABdhPJz4bGWlvPyo5trRY54gvB6+VQaRC0m6xpkF1WkKwohoMp1GlESLVsJedcDQwkBtAaNiB7QQgqG0tFeQZQZmXYI= X-Received: by 2002:a9d:7f07:0:b0:605:6d56:99bf with SMTP id j7-20020a9d7f07000000b006056d5699bfmr5405422otq.42.1650844587101; Sun, 24 Apr 2022 16:56:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bang He Date: Mon, 25 Apr 2022 07:56:17 +0800 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] 2nd ping X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: look good for me On Thu, Apr 21, 2022 at 9:55 PM MCC CS wrote: > It would be great if anyone who reads this could review this small patch > (original: > https://ffmpeg.org/pipermail/ffmpeg-devel/2022-April/295351.html): > > This is a repost of the patch by Chris Snowhill who originally sent this > patch > on 31 December - which didn't receive any replies. As you can see > on https://trac.ffmpeg.org/ticket/9564 the patch is needed and works > perfectly. > > I have rebased it and recompiled it. > > Original commit description: > > Monterey needs mBytesPerFrame and mBytesPerPacket to be set, and I'm > surprised this didn't break any previous system versions. > > Fixes bug #9564: Cannot decode xHE-AAC with audiotoolbox (aac_at) on > Mac OS Monterey. Fixes likely bug that none of the AudioToolbox > decoders work on Monterey. > --- > libavcodec/audiotoolboxdec.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c > index b8d0e868f7..daccf4abf8 100644 > --- a/libavcodec/audiotoolboxdec.c > +++ b/libavcodec/audiotoolboxdec.c > @@ -375,6 +375,11 @@ static av_cold int ffat_create_decoder(AVCodecContext > *avctx, > avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; > avctx->ch_layout.nb_channels = out_format.mChannelsPerFrame = > in_format.mChannelsPerFrame; > > + out_format.mBytesPerFrame = > + out_format.mChannelsPerFrame * (out_format.mBitsPerChannel / 8); > + out_format.mBytesPerPacket = > + out_format.mBytesPerFrame * out_format.mFramesPerPacket; > + > if (avctx->codec_id == AV_CODEC_ID_ADPCM_IMA_QT) > in_format.mFramesPerPacket = 64; > > -- > 2.35.1 > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".