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 9C90140FE2 for ; Wed, 13 Apr 2022 15:37:24 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DC23768B308; Wed, 13 Apr 2022 18:37:21 +0300 (EEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8BC9D68B308 for ; Wed, 13 Apr 2022 18:37:15 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649864234; bh=nc3u+evFtUqJDC9QpWf8KkSyyL+Y4XGl3jFF+GfLZBw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=hpKoszxY27yc0VQHQuPWrsOy0xvf9AfK9f44AAFRHNUEau1rYlLDDUuLgXm1+J+e1 sY2cKJzUWnn2AlYAe1TVWRyl5rourxdGWIPEP/6oGmAfObTXLinAaA66eTv0pgTsW7 TRq/bTdkRtDM3msLUSycMVAkVWSfys9R5iec4Y+Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [31.206.16.183] ([31.206.16.183]) by web-mail.gmx.net (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Wed, 13 Apr 2022 17:37:14 +0200 MIME-Version: 1.0 Message-ID: From: MCC CS To: ffmpeg-devel@ffmpeg.org Date: Wed, 13 Apr 2022 17:37:14 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:NrGZcVJXAlFibYSauirg60r1Rtj7x66H7YsBaex2oxk5C6WO7eLJRzmZsIIChvm6y6wKK C6JvVlAHlbvxCtazuiAvv9KNQfR090+lNOS9axOPM0NXdWuTiA10SQIf1I4eUoqu4NgM9i6P1hVY mE5Yf+XteydJAraGPRjDW26k5tzCIM2LnSkypgJJJnUEKeOV7xsUau89eThewEpnRLqz2UdQHCzN mIvS2us+Nu+wtz/mzWmLm/BLw3tcmNAIk37J6nrbNhSEol9pmyzgzDdHy0iQYMJSjS+tJEwRxOEw As= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:346SBZayvQc=:gLdppY7tCjWpsq8zCUOotU mW926MD98N6sAFQKRl4L5zdjBl83FbigmF3ZVad9gBVWFYWbGim7FW9/B9Vt7YKkVEpWTqO1Q FhZkgcmIwKkiopEFT3LSa8fyjyYSWnFqxChmlDSco30Jm5uxMvvdTBjpmom28iM2tDHYz2FLo PjPS0QtDZYiAHA5S8IWP6CtTIqgLisv7inHLkyvhwD5rBau1wLxKK0ux/jwYatI2GuGA7lFcC Ssj2VWLiZQPU1wf8zVBQkTQrQtPIV46M/7euerpSHeEHlg3XrYLUDbLLo17Zx0mtcZYHhtS38 oE1XsuOyg/YTvK3JrEuZUTXC541QZzPOwdg6FwCg/NOg4rF6amcG9lBFWNOcHcs2c759Va+KS HMhgN2upWDRch+PjxkzFoOxuqt1CX+yvmmxnXBHEVyt5cgunhcCjN7Cr9Ty+B6xPY48oleP31 R2uxN7Fvj6FXyY1y6XsbLFwocC0UuI/llTa3UczqtHCTQ58PXr3DHfgMROZtJG5QsMVXMgJam AESFxk2yDIbmzdnD94pnNUYjzFf7/0VDt0TPW347n4QutEyac4qXRQ0oXmHuHz6ousNRC6u2t 4aPKGcbUmx5gxFAQ4jtMQBpEj83KpAukYOlxu6J0YiNThkb7LyRIYzIGC8QRfedu3sF2TGluI E7bFfr1EPoPfab5thqrgpn7pgUSG0PQTV5A85xOK+NynKl+hxDqBf3oluCMUZN0vGEnayFV/i UkJ+9MmNuCSkbC+oyZXnH5v/Y1yvc/BfY9qfH8QbwNjlXbimN/TvQnnJd0Zc5aIs7DMMaWLwB /Coynov Subject: [FFmpeg-devel] Audiotoolbox fix missing decoder out properties 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 Cc: kode54@gmail.com 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: 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".