Message ID | GV1P250MB07373B22A53DF3E72C8BCDBA8FE02@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1706:b0:1af:cdee:28c5 with SMTP id nv6csp298878pzb; Sat, 11 May 2024 13:56:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUtXnVUitms/GV445TsWyzuhL/1KeFMxOq9IoHeKdWuizBFEtaRniYdkBwrgzlEIoOHiBdQ+PsBO73kOli9ywmGIYXDXvQHYcz4dw== X-Google-Smtp-Source: AGHT+IGejfsS2vPJ1FvwVigX6muDDXf6I/8EqYznfQv1bzqMMEAP8pxBWLEJbhnwxeltxK786tGf X-Received: by 2002:a17:907:3f9f:b0:a59:cd46:fe89 with SMTP id a640c23a62f3a-a5a2d665690mr464788166b.59.1715460967623; Sat, 11 May 2024 13:56:07 -0700 (PDT) Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a5a17946049si339975266b.103.2024.05.11.13.56.07; Sat, 11 May 2024 13:56:07 -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=m5l9JgSl; 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 A2D9668D6B4; Sat, 11 May 2024 23:53:34 +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-am6eur05olkn2091.outbound.protection.outlook.com [40.92.91.91]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9322668D6B2 for <ffmpeg-devel@ffmpeg.org>; Sat, 11 May 2024 23:53:32 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iCAHDNUeml7/l6fPpoCSDxCdl8eF3QG2YKqpcY3YKkQKwYmFdnviRjZqJAwlcaS41j/V7jpEH78KsDSQmnHzQAOBGsr0Abt7tNgYRN5onSkjB3Q182cfD8p/lQYOuNDqaKimqhd1uxnrghiaXZQbxkYP4wuLfEYfJm4tCGo9nMBE8WivKKXOD/WsyhAhckPx3CZtU0MF3mc+5bvG/epDTwVtT93yav+rQYGYw+Tc5LBvBc8zQnF5e8V6+V/ehyhqPL6QdpkMiKR/27L2GPlk4eESA0DwalTtAL4tPQxe4N8Xq2X3/J8TEgs0xPLOH8gVygT398m698eD+hkFTRGA8w== 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=7P1GfE3RlvBmJgX7UDGTqK+WppV0sAJ918icvO9ZBeE=; b=fnj/T5d3DAg/YEfXyAtY/uyMbW5snYKuPXApacicuGcbC0iGQUcpoNvc6O6oQSr83jkS/bnzbwAPRvW67yb2htIKiBYFNalC0jIpNGRpHNik2fEU03MeLztzzvE9YuUw17qPY7BveNNnvCzIoot8zF0c9avOZyEfizVJrgl5DsNe1o7mZYrybz5W6IMm+co3Q0YBWcR5lPgRRIKQqeqRJ6nRqq4TqZfr3vJ1RxJonBKFdp7oIVAlMoDUzNFV9blnOp9MEYIXVArF5tSNokquxysSbwykQKD+aq3fj4ZVscCxibZZk78pjHtN2xy+AT7/WgW/EerAjGASHsrShLvMFw== 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=7P1GfE3RlvBmJgX7UDGTqK+WppV0sAJ918icvO9ZBeE=; b=m5l9JgSl8CSw8fLXmTPkO+6JvleLRRjwQVWeuMyonCgsoraR7ioEHqfCxoTrwx/n0gd5L4h2FBC5XWShA0TYclA6o7QZaOfUxr/KsfvU7WuBEaGlQ0PF/dabO21DO5LnJpyMTIGeDfd8gOq46UP4wmhAR2GfOs2o6mMlUO1DigNwztUJDtxbtm9s9iRHkWlXYkpltQDI6OCoS5wX3uCCauFJIUKkQ3vuV0QwaiBjl9EPzAW+txkdN8/fy4dndLkzjwKGPXpaI2qwGst2fLrI8ChnJsx3O7hBG0W7v/wKrTPKKjnmoK+NVj2JdccBi5mqc6h3c1Eu0dYJKBEvzeKbWg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by PR3P250MB0370.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:17d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Sat, 11 May 2024 20:53:28 +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.052; Sat, 11 May 2024 20:53:28 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 May 2024 22:50:54 +0200 Message-ID: <GV1P250MB07373B22A53DF3E72C8BCDBA8FE02@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.40.1 In-Reply-To: <AS8P250MB074471DDEA29072B2586F0EF8FE02@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> References: <AS8P250MB074471DDEA29072B2586F0EF8FE02@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> X-TMN: [6VoAE8OzB/UwcAu6CQ2NTpM8xi3FP4Q72jn6N5jyL9g=] X-ClientProxiedBy: ZR0P278CA0172.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:45::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240511205135.2411886-29-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|PR3P250MB0370:EE_ X-MS-Office365-Filtering-Correlation-Id: e14dc991-ac71-416d-c3a5-08dc71fc68b6 X-Microsoft-Antispam: BCL:0; ARA:14566002|461199019|3412199016|440099019|1710799017; X-Microsoft-Antispam-Message-Info: clgO497q1+OFteNVc/D9iBlk/2ESYYZyU9edcGIH+SnWr0Hoh7G1u8NM+vRULPfwm7czJ8X9/LGoVgUptKIo7XEDSANPdGXHv5p0yhVxFhPwu5FibYsT/f1CtWeixCxwRJA2kOWQrYKjEc30YUg8pq1LMcxiYG06b7clIqmoMvXBiNZxIADGZmPkWuioSiB9cV/M5pa1yon/AjifHQv1FH23CtBU8i1enUmPAPCXHXigT2OkHIIMsdvjDQ8urgxkqELYqxnYPXVnb1mBhkAcMwrQR1rZgUPbP3Sxm76HhlQhYPPMr+4XSq6RqbfSS4RYCSBtxNeM4CEMgkSjUFerwn9mY9gquVbVwXHCr3rlt3nq8FUrQehZXSquZwCEeP10zT+DUfj1dAxgEHXsMfzzBoQiFfoHep1SymoFvdSCGzytMchP8jwubfXRQUl15nzYRVPKb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cMhajAMh/JJWikwyXV5w9WDBTrr7cCCs/X03k5Q1dl+USqWFmNgDxPwHBKekLNBz+48on4jEWJa7UPDhnILB6isABv5ZOCW0g/tUzf75dATQmRZC45oVRs9qDT5xdveQPPSCEulZRUS/yR4vIWG3aH/fH2oC6REi0NNh0HkG3SAUD/Zrk5wmndeeBOo3f9KjXhdgsVgS68ua1mRBpvURFourXug6W+Ue+CSSsyC7c39PSx7tJiCQoUk9qwXDahYu2+ujStygkwbRNEdha4KPlMQAKoCt40mkmstFG4ANgRqQdyVcINLP5szmB1FAQY5XDwSTul/S4gMXsq/eOe2ao+UUgdFkW9vSWc+mvNWmz7cLXulilHHbWWoZ4B4c5kUl8YbEdqbmzTiCWFNPWh5GoWslhp0GGnmx6PC9TnaWho2eJXDqsbnTRIO+pa4UwjAolPw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e14dc991-ac71-416d-c3a5-08dc71fc68b6 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2024 20:53:28.5140 (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: PR3P250MB0370 Subject: [FFmpeg-devel] [PATCH v2 30/71] avcodec/mpegvideo: Restrict resetting mbskip_table to MPEG-4 decoder X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: Dz2SBpMqVcsZ |
Series |
[FFmpeg-devel,v2,01/71] avcodec/ratecontrol: Fix double free on error
|
expand
|
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index d82a89566c..4b1f882105 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -616,7 +616,7 @@ int ff_mpv_init_context_frame(MpegEncContext *s) } if (s->codec_id == AV_CODEC_ID_MPEG4) { ALLOC_POOL(mbskip_table, mb_array_size + 2, - FF_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME); + !s->encoding ? FF_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME : 0); if (!s->encoding) { /* cbp, pred_dir */ if (!(s->cbp_table = av_mallocz(mb_array_size)) ||
This is done due to invalid input and therefore the encoder is not affected by it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/mpegvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)