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 93A14401CF for ; Tue, 19 Jul 2022 21:24:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1176C68B7A4; Wed, 20 Jul 2022 00:24:02 +0300 (EEST) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 14B6E68B419 for ; Wed, 20 Jul 2022 00:23:56 +0300 (EEST) Received: by mail-lf1-f46.google.com with SMTP id r9so27047250lfp.10 for ; Tue, 19 Jul 2022 14:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=D8j7u8Uifyky7sFyez330hdwvlMI9aHQQaDFjnJMNIE=; b=Ddna2/9wULBqDgEzpZAYmb4TdNN8EWCKvL58GmRUUsGLegneSrjU7PbFddlaOgRJNG sjPUlIp0T5+1+v2DTKeixeA717sjU3XnEEB+Pu3N949k+A475YtDIpG+3V0qXOjcEJlk fgEY7SdX1rnoDsQQWestPd0WtIPq/pX7OiJnyAJF/k1dFMLEzB+zmOhhCS8YZVE0bvNQ PxJKtQ0SmuZVWehxf8bXV9BUGtOthAK52ab4qxuMOTL95MHvpLfN3W/9F0r8Ixn1JyCk 82vy/PSbnDJC1YKVCscBFbhkqM1MCf3+zTUiP243WquJRO5iTHlpeoe0q+dlnL00iC6N 677g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=D8j7u8Uifyky7sFyez330hdwvlMI9aHQQaDFjnJMNIE=; b=gml/Lkj/N6isFnpJ8g7Yehi3/M6RaVMCuklDAkkwrNIfxhuaaT3adrfBeJXT+IO/n5 L7BbTb13UrnxjM4YukVsEVJQgkONhyMBxrqs3+beJnvBVvgNO3BkGQZkplc2PJ3iZU73 lk0+Z6h5WiySCXFS7MoQMy6KCAjUTk73eV9fZwnskEU2F7YnAo+7B20E79kcpWuYAF86 wQJsVXxxlyunLIb0tRzkvmdKjh5bPQDe62WNsBRiJ+peHEOqdR9RUYyaSfXVBUgAyCyM yN+2XP+LuZhGkCUJcX11010DGI4/Y3zNtVPOEyTbTM8Zh6fzmimtI13nNfnxfalqKn6D DJuA== X-Gm-Message-State: AJIora+kNmOt+jHGXy6V903cihi4pkW0egu2f5lY/1xJL4x5A+uq320e 1J7KVwrF3JiUGTkfn9E5F28iuETI+E6fGUQyAPlqsG6T X-Google-Smtp-Source: AGRyM1tTpQ8Rb3JXRGENoB0D4f5lqp0w6JO39eahc6qONzvsQ+mpIikw3zm1DO4BHMkZXVZZWrDjK5QXWi4a7az2leI= X-Received: by 2002:a05:6512:3c8f:b0:489:db73:8413 with SMTP id h15-20020a0565123c8f00b00489db738413mr18116498lfv.684.1658265834325; Tue, 19 Jul 2022 14:23:54 -0700 (PDT) MIME-Version: 1.0 References: <20220709043142.2228184-1-amirmazz@google.com> In-Reply-To: From: Hendrik Leppkes Date: Tue, 19 Jul 2022 23:23:40 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] Make implicit void pointer cast explicit 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 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: On Tue, Jul 19, 2022 at 11:21 PM Amir Mazzarella wrote: > > Thank you for your response! A C++ compiler can't do implicit casts like a > C compiler can, in this instance. This is fine for most of FFmpeg's > codebase, since these tricks are in C source files, but in this instance it > is in a header file. If any C++ code includes this header file, even with > extern "C", it won't be able to be compiled. > While this is true, extremely little code in FFmpeg is C++, as it is avoided unless absolutely necessary. We're more likely to fix such cases when needed, rather than blanket them "just in case". - Hendrik _______________________________________________ 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".