From patchwork Thu May 9 01:52:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 48677 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9d8e:b0:1af:cdee:28c5 with SMTP id mu14csp150353pzb; Wed, 8 May 2024 18:52:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVenfQNgfb3vaXYxT5QyuTFParg9w46jSQ9P2/J6Bz8CykOzJA1sbvbgMD3whBYOJxr4JSubhAu3LWkb1EqYEIN3N2nIznR4/8mFA== X-Google-Smtp-Source: AGHT+IHklaHVd6tCoVnn+nJRoofOEdFqvoz4B6MXOSuzy1T+uMlLlgqB0ADPQMQfM9bBfwcR2UnN X-Received: by 2002:a17:906:194e:b0:a59:efd0:b247 with SMTP id a640c23a62f3a-a59fb9587a9mr332128966b.40.1715219573424; Wed, 08 May 2024 18:52:53 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a5a17be6fa8si23666866b.856.2024.05.08.18.52.53; Wed, 08 May 2024 18:52:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=GYz6dmqg; arc=fail (body hash mismatch); spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C19ED68D6FF; Thu, 9 May 2024 04:52:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05olkn2086.outbound.protection.outlook.com [40.92.91.86]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BFB1868D58A for ; Thu, 9 May 2024 04:52:42 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IQto8cXLPZYI31VxLU/Odjpa3wkAz+CdGZ0RCdf1xrGRnpHjINP+oK9/LUSuaTbiQUBbZBb4CilPK2m9uoeNmEVPhhl94GUtpQZY8dr6PVF1io3COVI1VvmKChSpy20PnysgBAXp1K4y5dVJt4Iny5vThdGBDNvgCUNJHWskSUhJ0FPWu5SvosPIuyiiYEJOqBUxedjVsr1pkBiPpdG37BZjg8vZvZPiOTs4zsDirn6/yK9FzZn5UwMRe/2qWvSgaI79rUtsv5iwhRMNIW0NjBF0ssHZmGbFnTmUM7OK+XHLSTr6UqDf9f3a5oHaRLGVSfv/SmHbRIYjS0VZwhfmWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1oWtfp2EOVT0CWBE6PajMb6A6pulHqEcq8WwCF7Rh9Q=; b=NCJtEfoE/5S0df6byMR3YejiHkd5ctXzoLpAPqxYO7QLqGz3lyZxV5reKXkIM/YyDKZ32Y7MM45f9Hz7JhDot5Ywmhnk6ffnk3qiGYEu/r8Qa9nnmdF912+qzDQwPCJiVPN3e2+SA3X30qsiHY7y6LsCx3W/pje5Lox3+mpdnfC4EuARfYynd1tsa+Lu9szOMhimalKPa13yYOZpiB2zfHncVPQwgXW/Jif/9iX3lja5FppMwfufKgCx4Ko1c8niJGOeXU032J2AmJnjXxJXnygFlrfp2qybrW2c50df7/GBsUjpm9AckTKM5QtAybbm+cLP3FbztXqRJ8UznvZlSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1oWtfp2EOVT0CWBE6PajMb6A6pulHqEcq8WwCF7Rh9Q=; b=GYz6dmqgQS3MEQw0ju4A7T8+V1BSqcl99HPbHfieZ4Li2SOK0Qc+lOyj/Ac+rZ6cvM7yayAYCTJSS/3IPU9c1pqqp30enc9oHK321+bE1/J5+ielHJwc/HrlAb4oPhaTCDZ3wLeBmbRrrh4/VPlzhg01/SR3GGt0jaEZEgvcdvjPkBDivw7KVLKekPn34L8gbSlG7xOXMjRVuyPGYFjWhw2n481DYWWjrNs4YjORKAedDeDP17Q3hFLrZ7XVPEB1LG0tnfOqY1tIPn/c69Fn4KkkZYTFjmqlc+Glxh6fGAKq8ToWtLCMWKgPy9o1FbISaZhUg6eBT/jbRYdOHWT7dA== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AM8P250MB0121.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:36c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.45; Thu, 9 May 2024 01:52:40 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::d6a1:e3af:a5f1:b614]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::d6a1:e3af:a5f1:b614%7]) with mapi id 15.20.7544.041; Thu, 9 May 2024 01:52:40 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 9 May 2024 03:52:18 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 X-TMN: [k/oQAJgVh522MKA/+BdG8E6XiQaSSf5vOZeg3z30/8U=] X-ClientProxiedBy: ZR0P278CA0088.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::21) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240509015222.3554040-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AM8P250MB0121:EE_ X-MS-Office365-Filtering-Correlation-Id: 4bc0a4cc-216e-4360-5001-08dc6fcab5cd X-Microsoft-Antispam: BCL:0; ARA:14566002|461199019|440099019|3412199016|1710799017; X-Microsoft-Antispam-Message-Info: kUzGo4f1yNQVA1D4irkdYQenT+AdyMjDntGeXnUl3IDRzdnzVGNGydDjlwZ67JpIz63Rah1dWGoFHF/tza2/3snjqSg88k0nkVuVUonj9gMhioBPYhbqwXovOLI9/Vv3xx2NSRUUxY15EZQ9abgNV7S9yzK2dznC3ZMr1FAqJ9eTf+kztirNKgMsm1imkQmv+fNsw9ROTb37riXOwsJeMJJV/720aROs1zm0N+Rz/5Stl0wekSbyeHI5QyJaq7gBdoVL3Ao4R+jLOhPNXRcKSR3BgBlf9gyZleXifs70i9cHnoH4MZpui3caE+MBmrb+k+99XKcSy8bQGlz6BGDaKU4VOLNHrF23CbJJZVNu/UH0N4Xydj967rMJ+V5NOnERkE+P4eq+Bpy6O2CSnSnkdESO+96VSOFVlzvFbEJ4i5nQQYHzJk+CMT/q/u1FHw90v0cg9j0hzz9U8fo1BHzF3BY+T8qaTKYQhe031aOJ1eCB9K/XqawStfgtSfG3DQUA4g4gbnCcs+aZnVIZpev4TFJNkAVsuwInZXahXKjMQe8Rr3+v1buUCbopJkefRLphy4uSelgOEfKeUgohJBj3Dwaae3N8PZkANi/+SO4HEieVIQd6HMkrrBXPm6ZinrT0 X-MS-Exchange-AntiSpam-MessageData-Chun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Yl3czWS3MROSRuy9lK9jGNOegPvX1ZmU9CEVqkF/fmfKPbfcV050LRWjIkGavqrj1x19D+TCqj9VDCTebMM1mM84Hygaox/jkgsSr427v8mAfdDyakWq6yT7Bzim/Zb5AA9LGO47wcWs7rjRtsqiQe1ZngXXS2ihKoBdRzCS7H/pRHFMwNvARFv+gbNuJB9q4z4Qm8DkXLE2xrcVjRkp4ncGH8gnzUpPVLzHcvsm657A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4bc0a4cc-216e-4360-5001-08dc6fcab5cd X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 01:52:40.6668 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P250MB0121 Subject: [FFmpeg-devel] [PATCH 1/5] avcodec/mlpdec: Set AV_FRAME_FLAG_KEY explicitly 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: yEA4RV5Nr6sA It is currently always set for all audio frames, but this is wrong (namely for MLP/TrueHD) and will be changed. Signed-off-by: Andreas Rheinhardt --- libavcodec/mlpdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 305c5d2b36..e85dac36a7 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -1212,6 +1212,7 @@ static int read_access_unit(AVCodecContext *avctx, AVFrame *frame, goto error; m->is_major_sync_unit = 1; header_size += m->major_sync_header_size; + frame->flags |= AV_FRAME_FLAG_KEY; } if (!m->params_valid) {