From patchwork Sun Feb 14 16:54:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nuo Mi X-Patchwork-Id: 25620 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 45F37448B1C for ; Sun, 14 Feb 2021 18:54:44 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 30909689AA6; Sun, 14 Feb 2021 18:54:44 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BBDA0687F13 for ; Sun, 14 Feb 2021 18:54:37 +0200 (EET) Received: by mail-pj1-f41.google.com with SMTP id z9so2470106pjl.5 for ; Sun, 14 Feb 2021 08:54:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=w8UPvwgaijrfUQ7Qcj9NQeq75hCBOIxTPWW6l7LdvYc=; b=geeC2g1jC+LrhUUUksiTV7A7UainEt8Sz/sKrOlGxzKdv+/9Ym69wz4OwyvUbBYrEc YSEKORDNT5OnmNwO33XvQ/JoWE559uIGIZv3K1ZGIv8oOvWoCBkpPneyUPFFY+AfLOzK Iy0DKfRQJ6le4Casd4t/CKq/zJ3E+r/M1dB8YaoelXCrFoPYFjusvsuXNjw8gV/rZwwf FDdQboXq+usb7rz+upVUWFo4Qpgw8sWMksQe7wytxAIZsBWX2BTK+yJJFUhM0RQk8dqt zroX0f1Rsb//D81PjWk4OmECRpSMTNWgSBwiXflNDzO9OroQlI0DAoPIV1PEHu6Kg3h5 v1eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=w8UPvwgaijrfUQ7Qcj9NQeq75hCBOIxTPWW6l7LdvYc=; b=PmJSgRSr/IXbR2S0vyfPqapGkDWKT2tFLWfEqToYs+s3hANM4kxN0PFPieb4d9dUX2 90gXnFp4AF50UhYPMN0DcLNLpI3oSCNUh8TXfwaxNL0J+ctX13VFN+q0wuyo8U0///ei FikluOKdDxkIer2T4CZkUR2a6KSR6siXmbfp21UY/+YEeFsvflRGhZ/EjCilrPWSYjrp pxZyc8Tk6RWCFVlAP2khW5g61YZhxXsdbh3cqE0dD6ERFPDHaE0FoToMkboJLX13anIk u0XMNFInyt7XFkinJpphRBy2N5HZ/jLTHV/xlibAm22Jvxj4KqXD5yy3vWuqhbYpznp6 odPA== X-Gm-Message-State: AOAM531NinLwcLkN4VGmrrEcq/dCg8uA1xYcjwwr3jXQGECfs2X4KPX3 FvDS0RVs8oMWRAGPQUQAWIeZaUln38k= X-Google-Smtp-Source: ABdhPJzKsTcdIdhxgKMBLPbL2RJC+Cxj3jskIJmzO3WrTHMcb1a9DYweSjQekLP5QjzcDZkZ+r3IEg== X-Received: by 2002:a17:90a:c84:: with SMTP id v4mr12391938pja.228.1613321676012; Sun, 14 Feb 2021 08:54:36 -0800 (PST) Received: from Nuomi.localdomain (23.83.245.51.16clouds.com. [23.83.245.51]) by smtp.gmail.com with ESMTPSA id t4sm15148031pfe.161.2021.02.14.08.54.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 08:54:35 -0800 (PST) From: Nuo Mi To: ffmpeg-devel@ffmpeg.org Date: Mon, 15 Feb 2021 00:54:03 +0800 Message-Id: <20210214165403.13554-1-nuomi2021@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Nuo Mi Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavutil/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index 590146b5fb..c554e9c063 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -1735,7 +1735,7 @@ const AVClass *av_opt_child_class_iterate(const AVClass *parent, void **iter) #if FF_API_CHILD_CLASS_NEXT FF_DISABLE_DEPRECATION_WARNINGS if (parent->child_class_next) { - *iter = parent->child_class_next(*iter); + *iter = (void*)parent->child_class_next(*iter); return *iter; } FF_ENABLE_DEPRECATION_WARNINGS