Message ID | AM7PR03MB6660DF60C6514A81C52E54238F7F9@AM7PR03MB6660.eurprd03.prod.outlook.com |
---|---|
State | Accepted |
Commit | ee41c60373fcb8b1d49929367e564020361838da |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp7811695iog; Thu, 23 Dec 2021 19:24:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwk0BCO0ToycLwa3vymAclIQGuW9PlPsGCYojeIqJt0kJi//4V5kDlT7H1KEP3++2smGMQ X-Received: by 2002:a17:907:60d1:: with SMTP id hv17mr3883537ejc.384.1640316251247; Thu, 23 Dec 2021 19:24:11 -0800 (PST) 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 e10si2646523eja.244.2021.12.23.19.24.10; Thu, 23 Dec 2021 19:24:11 -0800 (PST) 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=WaylsAVg; 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 4441D68B247; Fri, 24 Dec 2021 05:24:05 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-oln040092075061.outbound.protection.outlook.com [40.92.75.61]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9CCE768B145 for <ffmpeg-devel@ffmpeg.org>; Fri, 24 Dec 2021 05:23:58 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ah/MP//ShTzzCcCvVWJj3nphlfPOQTOwl/RoYsB6ebXQhb05zj+owBC+RN+SFn+bHwvwcHomSUvXVpdp3L73uZpV9NrxZ11SeOM27YxOlzrxldiSUMFcd0b923540FWejGdkdsQOKwkV3AXwmRQ29HyCwbWwmPow72VHdycmeNoL9C8nv9MagUFUrdyvN34ezMQlU52zTOfhdtmgvEUIyCcgvIdGJq1i69aXfq3HZceBuAiQ/k5n62JTtLfjKZzMWxq0sOixuLCm+8GLO6wI4Lkrv0RE2US7tQL5ImpCrdMqDtC7uDY4q1J+lVulqzVCPf+ArsXwKyr7E44ATm528A== 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=KgFiJLkyNbDXkNPXzmq/5SGS5k9UpAIoGM+WfAv5Gyc=; b=oK13LRaG/tAsQMQKcTl1Da9bwKy+vl+VV3ht74Bvx5Ll/B2HBvotH2DnmuwTOswIP9uc9ZHOBI/R5QSeFdpfjNrNOYppcIR5v1tIIvLb7cMt2T7EGQVuV3Pud3+9xlj+ZNC+zocaxUyYKSr15+aZLrTwiEO1KITOmltoJRRRqIVhHxtW2jgZjteWsPYVOWV2bgphXqKvw71VMDLPWhWy6dwLZbuazJ83RVKKFkDvF6wBkqjAnK0c6kfQcn/h08XJJSoqBX9MoSftZQQlo3JCcV031kFFIOckLRhquEpQXaetmqVY+1VInSfuqQVik2ufJXFCmkZCNKa143jTU5UI8w== 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=KgFiJLkyNbDXkNPXzmq/5SGS5k9UpAIoGM+WfAv5Gyc=; b=WaylsAVgJ06K0RoPk8+gBax42Jb9k/WlKgYcTVFBpSCXTuzeUG6qFG2UvMqsML3TdlSK15EnsHw87p+gGfsqQRNTjT2TMIG1Fmg//7ia/S+RBEntLQ29wOeg76anvWcf17NNZkwA+gv8cBbBu1CIs5RAbL7wfhgTYWcng0h5/BLLW+RF7XrI9IbzT1RrDKQD3g0hexgeqxrLjinvwmIMCm4NTf8Rdkaw5Wdd2SVlKbPlgowMF6zHqxpLmaU1/4kPofdiX4ZMqGLtJv9FJQD7nXIHtPXRhazgy9wW2j49NBOLEc41SoBjy2f37JAAV36Y67PjO4d4jnvvILBVgfXZSw== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM6PR03MB5249.eurprd03.prod.outlook.com (2603:10a6:20b:c9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.18; Fri, 24 Dec 2021 03:23:57 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::f0dc:92f5:6bc2:45ca]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::f0dc:92f5:6bc2:45ca%5]) with mapi id 15.20.4823.019; Fri, 24 Dec 2021 03:23:57 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Fri, 24 Dec 2021 04:23:28 +0100 Message-ID: <AM7PR03MB6660DF60C6514A81C52E54238F7F9@AM7PR03MB6660.eurprd03.prod.outlook.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <AM7PR03MB66606013F665BF849CE7CAD68F7D9@AM7PR03MB6660.eurprd03.prod.outlook.com> References: <AM7PR03MB66606013F665BF849CE7CAD68F7D9@AM7PR03MB6660.eurprd03.prod.outlook.com> X-TMN: [IEZdzoJ171N4/H6/A5CEgIDQeg+Q4Sg/] X-ClientProxiedBy: AS9PR0301CA0032.eurprd03.prod.outlook.com (2603:10a6:20b:469::30) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20211224032332.2104747-2-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 585f16d0-cc26-469e-2a7b-08d9c68cd261 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiR3EehW4kxQzdNcP2D/mG1JnMoawukJsVc/PtEhUYGjV8j4VsOFqtK95gAS9hFECv7p60RwvjoP6FxB+zTmrsRfyV5DsgtZj8MRQIgP7zg6lzA+u8plcAf27IPCScltLm52zIMaBlswWKFjf9IZdwsrv/Rcb31oCtW4vgOCZnIcqeFFtF4XFZgo1vgP9ldWhDX700XHibKi3kVv/Zkwl+r3c9Uh2oJ/s7qdEiInQ+Sc3OWsKoMmT4N95Qj61CgCeB80Hssqp+subdL+JTCBRFCnaXsMnnZIDbmX8hhBxonUqBH4mY4NyVf07vX5BDIevHuRuGrBb3XP0VjyN5LgynejVQJUnm42ebU6c0ly1RQfvMP8CKXQmN1f3AmrA+KRlzP93dnF+cUXkzdLarw9Z8PEgTUlxShYff2EtsOHgRlXFeLS+RoA6OHsv/ybax5OAre1cwh8n+Pv/UTmNb4zN7LWY0uxL9VDogbwOQH9stjzFqrFJP0RZHlSvffxjPwKwXYFhDOTOfoQ0nyTC1dGKsN6/K8h6EgAhkSN5FTB+8KgaAQuitV6A1gpON1ZDrCVCZFGbeGn/bwtJxRbCnG7Jk8pi7x/HWs4xxM0jNRUFDJnvJeKhUd+bBOshJX1mGgK5SLcUgEjbzzBsKmDZiOJTfSUbJj/PqWT043cJMtfUevXTQ1vG5vlCyLjBRUW56nb9Pp1oBGB+/gNy1HDgcdPzCQ3Xq8yxzK/HJr4vipec3daW6NJJBVNkkFXsscMdTbqBaY= X-MS-TrafficTypeDiagnostic: AM6PR03MB5249:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rTtg3BhDCDVx0/PVUo3uLX5kMdmC6iJGuy2ey+EaDFCSMVujY6RxVQd24w4IJelFnYDT0SekhDzhT9NsgxpycHGqjILRHQEoXkgX9K4a0TJQWEPlPdnpwZkMdoEfetBAVvP4artKRwfXh9THXkGTadADFqgl3NnsXjSxdQQ+u0GOHtcMoeboWGLKO/esQahfwvMhDefZ0a5CyUORstKgjOXZx55jZMJZ6YLgCr5r87ArIpBl5OeixYIwYOV08pAaBse0L5lq4BoUGJdsOgJILZf1i7RSAHJD7YHkk5GYw1j7aJSh5rarClM2ou+5fzNH41PlFltR6jObpzQn2IBJzj26j9r/3D3PPK2bQ//teQ8Q1sl2hG+2zt4PKRLYSOkAl7LzLeP3edWy/3TN/FMceLGynd9IJPS3pGr4I5LQ6V23w91KUGcILnyXVfUOXWitbV5gccNev5itMolbL/Z+sDi4++zXDHGjp26b+xEC8x8GnoaeUpbEX67CIaseq8UdMEhvrplHvy+di6IaOgDlEwFTR0bemSgo0iG0h0Jamz0vxitT4GfUhyiu2QS7XI4uuyQDymXcCx0RyrFEw/k1Sg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /93i0j0cQQTFZ8f1nwtH/XRMRz3IqyYBZicSOHBGEU6U3nabzgvNDboVBKuZnLPde+sU9hW0gYG7oNPzvKztaUsutZIrjvIXzr1yrvy/psqZYAtpf9zTJaSShBIJVpcRq4Rn0SImjImUP+Av0bh+W04uKqbbKSr8It4AMosYKZqrSUt0dc4prlojVnuheknBYK/dkwary4JU/viyIEkHCJxieZGb6FdWph3tyxxVNwso3wj7QG6yOqmkjVS+txnaECfw5whSA4SRvXclFlM9svi+U83wPU0VvQci9lJo2AZ0b0xld0rUyJw5AI7hz8SnD4bXA8k4Ma/gZyITQi6Gw8BzCaUkIO7Rvu9xgH+ouB8O8V5RI1n3/N4WOX/h92b/cFxZ9uWJecMkRyBgscCzKX4Qcv81De0clicCiX0dW8rrz8DuxtbXXp8F4CSLhaOUg2+jVFwEcQWRTQyKx6godnBJ7EQ3uVJP/jikHJDQYg3Psms6DFBXdgUEHNYyCrEETMpaDVNq2Vh9oMzay3OVSGD93Cc6EipgAMtdBSO9px+z1i8DEXriD/yHHceiXczA9EcUwH3lV/VG5UN2QTp9UgUatA1rPRTZCE0gSH6y89IOOX9+8EgsrSTUKJJIlq3WjNzZgzhLkS/1wx1T3tp7bCk27ulSC5ZKIXbD5kpCDODBhFP4CJLgv9ZxGbMWvVzOUPx8ZKVT+4k+GE5TzRnWYtrvB8C1giZ26Ly+TGU3f184uyoHGtqBmftNk5VxDj7wsIKu21fPjm6goIiyOTxtMj/UQhynGvNY4WVAj+poe7cmoX+cQZTVmfrojOdcUzIcFls2cfgMrbR2K3ay4vieLIWM9SUl0691SmLP4eyxyzSAR46HvimGMNwftmZumPYu1YSZgc15MJ0M3/nVGCifhq9XavQh6ZMlc4Z2uR3RP/9bqY+nlEI2c1kxC7z1vVB7qIVV5/ryTmYtiKO3bc1vjQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 585f16d0-cc26-469e-2a7b-08d9c68cd261 X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2021 03:23:57.8503 (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: AM6PR03MB5249 Subject: [FFmpeg-devel] [PATCH 32/36] avcodec/mpegvideo: Remove always-false check 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: SVFsBtyZY5Fu |
Series |
[FFmpeg-devel,01/14] avcodec/mjpegenc: Use custom close function directly
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | fail | Make fate failed |
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index c0ba91e864..942952e46b 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -2318,7 +2318,7 @@ void ff_mpeg_flush(AVCodecContext *avctx){ int i; MpegEncContext *s = avctx->priv_data; - if (!s || !s->picture) + if (!s->picture) return; for (i = 0; i < MAX_PICTURE_COUNT; i++)
An AVCodecContext's private data is always allocated in avcodec_open2() and calling avcodec_flush_buffers() on an unopened AVCodecContext (or an already closed one) is not allowed (and will crash before the decoder's flush function is even called). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/mpegvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)