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 D6CC0498C5 for ; Tue, 23 Apr 2024 00:03:11 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DF77368D363; Tue, 23 Apr 2024 03:03:08 +0300 (EEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2020.outbound.protection.outlook.com [40.92.89.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A7D5468CD11 for ; Tue, 23 Apr 2024 03:03:02 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hg+yRqAEK3STizfLX6xUByLD9t8JGcHWwuBJvHdgCEnBt9glBXki9Q4RG+g1KdVeKBuhT+sEICJLShuVtQF42OO9AQJU+7F8tcNzi/Bgy6PvYkmGIRLuSTB1mPDu+ntOlWKka8Xe+T33HADr0BU6f6mZH+2VWUD2NPOwwQiDnOS7pXBR0GAGjTAUT+93LSVJa1O5Eac1e/sssUXhn4Hhg6sWwfX58YpVs26nmNgZ5S56jIUCnLhJkw9BijNikpIdG1EzUHfep3OMv3VLjal6hLHomGTsxqiW1JELp3YEKq7sOsR/Vzwtx67kpkkcD6bC6dOWO8Z6L2zqGdq3xJUj9w== 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=wzrx5uZmvRI6X18DBxd43xVEL6e2yLMD9/1NB/24GMI=; b=gleemrOFpkUi42b/IexE8J6VpZUETL5+s7wLAO5epKdwaRRJuohlbbL1a10xq1HuyjUgsDWkrORU7ed0afZ0F6vneOCD1QzyvhG3YBNCp57wOQYb2RmKSyU9mac5rOTQDdJiJ9sCEJ7cVkEqjRk5Nux7kSyBbdzZxAIhVwqbnhQghAcxUhS6f5Y+juE8h//2jJmdRFA9UBe5fJxJN8uO3hx/55EIipXMLHpmWAyIPFTIz0yW3fsNX8uF8HnBwgUTut1fnRTfnIefAdAzfo8eXR+j5gNysItPVCE0we5adynE7F4RSC6kPW14yuXZEP/G5HZdyzxnDrkP0W6k4GOMRw== 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=wzrx5uZmvRI6X18DBxd43xVEL6e2yLMD9/1NB/24GMI=; b=UPBzFUtOb9loVB4MjURqV3SsVOX7fBC4XUBkcoIKpMW1fqEcQxNEEOJaaveLHPitvMwQ93iA/UticB6jocsNbnq/UmT6o99BSW+LuN2oh7ZVHD+PgTKHcCFsRb4IVJuiVA1acLXKRSryAKfIVqMANA09dGA6bULfKX+570A3QdlhNIfu26wSdkzqG094+j59Rwk/lTynXxQ9xpw7/xAe1rppVZh9e2e+/ierq3CmCDAh28E4izAJT0wVR885PkMX7F0kv3Ta7zAScHdfAvKTC3laydhwTK36t3h9WMQFiPb1BspRfdPCosLvCw8qCDsvDx3ggmkQEqRnlo3OI+jHvA== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS8P250MB0219.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:37a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Tue, 23 Apr 2024 00:03:00 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.042; Tue, 23 Apr 2024 00:03:00 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 23 Apr 2024 02:02:52 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 X-TMN: [1pMxOaNgmfhuH7jLcRxRKVGb0GVhyORCR+8avfiDzQg=] X-ClientProxiedBy: ZR0P278CA0193.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::23) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240423000252.558784-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS8P250MB0219:EE_ X-MS-Office365-Filtering-Correlation-Id: 80104519-9ee4-47cf-34e5-08dc6328bd2e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TmZIi1w1wMXmx7+08HWtAuNieRT4VhwGHLYclWyjp2stdCT5mZWBXtqGv9YytlJ8u4otLGvA47MTZmczrIU8jdyWSlfbLgxVBEc4/W5gGWl+nzwv3iErbvKXLjWY6amVUHcvgrY7jYK7KORVDU0AYZ5dNxcZ5Rt/Osb93gkXWK0SD1bK79aCiQLbXF9phFH7K3ADLj7LLkMIpBKa6RGgafrtpUq790uiSN9lS/xEXZCSB/FjDnA18kLHYvwhEbcAtAlyiWyLEs9Pwsr1UNG5uNcanAXnEYuOo8huwe36AEIEa065JZiGUtL+jMnz6P/yZdw9L1qH1T1wwUuwka5RfeC7OKuqLiCAPMCDHbEGWS4gvYsrEQmXtWRaVdElDVCR0WzJO1feKFc2RZWu8EXHr/abQkLnNLHaLqDBO4N4bMMdJZqpH+4ZO7p/dE6BGImAz2ngM86CL9HwhSuNDoNjTJ/I4BXFFg5ej/CHumB71iQ0ZvwVNP9MakuS2zCKXS2qaLOoeEURfcB4H/rFhxj+FFmLyNJ9lzPyrEcg4Q0zOFA4kMcarztjY43NTw1wW+6H3AG4nh9cI2Z4khUZWRwKoows+Hs2yEl5ZEsfWCY6Tif9JR6muAHG88yuWjockjGc X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?GcAitdf2q4jv2KNsWx1q2xf6Vh1tw8oOQ6bDPvQVd4jafte++lbexyDD5A3P?= =?us-ascii?Q?vwAX+LPsHABnxX/Q4zk1dCOa4qyjOP8zmCk6K2dfzlLZLV9da9WjnG5wEyYj?= =?us-ascii?Q?3V/daR/cRFMldgUR/8Y+NkiZnIdldc9OKqfsx4SpnNxLzuh+ypJvbB6bonTG?= =?us-ascii?Q?znMkIIT050ub1nYIXj8J0lv6qusvT0XFpK+30bZU6kBCPB/Xe+6LbwKscUMY?= =?us-ascii?Q?2YH6gXYXxdPMYNa7HwnE/mm2XATlmvEKqkFLkJhUf2N3UFcQqN15CCASZc5/?= =?us-ascii?Q?F0WbJewCLO2771koLutAadgaFBMBlMEn7xsvMaEZxxdaU2Da1cb78xWjbwPq?= =?us-ascii?Q?2jf+8uZVd/r4HFEm9RGTeaTt8ey+TiDXf9LOhG9k0QpsU5zBddPJVUAd21ua?= =?us-ascii?Q?HCECJcJGKJGvimT48AJ2za0px0sABlUv7C2bBODmV27mYbBsgrLpX81YOUmV?= =?us-ascii?Q?GuqvnD4PKTufZxBvQIXu04AfwAo0v3Z5n1/EU+HJQcILeMDdUUgZeBLCRBjL?= =?us-ascii?Q?YJz0ZnPgBNZss4M+Xg00abuFMgLH4JSahDJGwHe9jV92VneSGwtVlPEMZMdT?= =?us-ascii?Q?zp+SqlirYcmuoWVTYeKS7IcXqjhOx5cczG2z1diC80UxJlFZHTS1+Bx1rjCd?= =?us-ascii?Q?YAKCljAM4j/oFuU+/8jIZotyjrdE2xDuGjtfSTOIYxSZdAVfx3t9+S4Zs4Yq?= =?us-ascii?Q?+1p42A8bIyUwMYPVdIBABpVxTL2x4558BYaaqWC1hPQ5AeDqTHaBoMdTdRuA?= =?us-ascii?Q?Lyslx6KvDpk39QmTwuYibq9HxXV2Qi5giwCn66q6X0waWq3KxKqLu+BuspDH?= =?us-ascii?Q?0Jw/aPeiheHMbWyWNPZgFJCmVivvH9CEy6tcvxRPcEGXWFoJk0elXAXfoW28?= =?us-ascii?Q?iZ5+hPZWLQdWBRSKcia35kSWqBMwOBnBALy2YAJkUddh6z8F7lVELqqZUDgi?= =?us-ascii?Q?VfJwipdEtf2NKz6hjLiEbMaNPqM+nZvvHwnA7I3mLIj6GOlZxdwYfY7HpWE0?= =?us-ascii?Q?62NNpk7/LzVGScQFYt8fJ8VShLsY/iWUp6dfnREG/YGt6M7NI8DnyDMvYCxU?= =?us-ascii?Q?3S6ANu13GjC8exJtQM8ue00u1r9nMGrDISpG7Fu7nW6YVDXbBb6qdcQqU+gP?= =?us-ascii?Q?ql3gn4H5KXrx9DcsYyep/dC66ERtZxCoLu7cV7+u9QqjNcXdq8Wchw9pkoaE?= =?us-ascii?Q?DKdR7Gj/W2ArAoCjJLzVZFrcOoG2Wua1zmqwA5WiFyFJdWIcQrdl2Pe9folY?= =?us-ascii?Q?mdv5vxfqnm81FykRvcJr58zH86mK1pMVtb/WD0H6gg=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80104519-9ee4-47cf-34e5-08dc6328bd2e X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2024 00:03:00.5798 (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: AS8P250MB0219 Subject: [FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: Fix check 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 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: Fixes Coverity issues #1596529, #1596531. Introduced in 8e35e33d42efb89ff7e3da92b841a3b43a5a95bc. Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index f108f8daf9..382d0f75b1 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -862,7 +862,7 @@ int ofilter_bind_ost(OutputFilter *ofilter, OutputStream *ost, ofp->fps.vsync_method = opts->vsync_method; ofp->fps.framerate = ost->frame_rate; ofp->fps.framerate_max = ost->max_frame_rate; - ofp->fps.framerate_supported = ost->force_fps && opts->enc ? + ofp->fps.framerate_supported = ost->force_fps || !opts->enc ? NULL : opts->enc->supported_framerates; // reduce frame rate for mpeg4 to be within the spec limits -- 2.40.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".