From patchwork Thu Sep 7 01:59:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 5015 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.15.201 with SMTP id 70csp1366670jao; Wed, 6 Sep 2017 18:59:42 -0700 (PDT) X-Received: by 10.223.160.46 with SMTP id k43mr746893wrk.113.1504749582151; Wed, 06 Sep 2017 18:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504749582; cv=none; d=google.com; s=arc-20160816; b=DArC+WEByFeCalqtpc9cSv2CJ2Hh2+cSufOgNaf2+Wl8wTm+OzEl7bhylWkt1kHAja CfKYJLuDry9ujyah+SXSlrK5S4FndinoN0ln6/JyUsp74RyfZJuRVzPjZ5Axtb2rAHcg sNQc8Xyzh+7NS+umTAAXCJ8HcPXDW9IhXsFmoySX0Udynupq0lQK1Vy74IW+erioKx+3 R8puWFpMCd/HR/nz821BOWeKhfQWpnfvFtwFxEE/HJ6Y0ac9cElFCnUybIrOV782cnwZ XXlDgPBsyrGX651N87hV4jkwSjZV9iBI+ReKnsoRa22ombIvxtgprTtTcdJYw9PynrzG vDbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=DQP7kOC6zdWfoxGL/2324Dd2Sk11vVKA3wxYrSDbctM=; b=v2uezW0AgLpohehkp8PwwvIBBdoMIT+ZO7M8IsXc0P+cukeSiOZaCj5aCmBn++/v+i 5QS06ArmEBRh+eT5jHVQAnsym0W5eT+4HqSV3sMEj6YHShQPC9VUdPNsMVEX200oXfEt qeWwNB2S4BDwEzPT4/8yT0IJT+kn8mY5DuRw/fu0fgJ/oxq/e34qwKZFpXDK6/wtKXtn B8hZ6RAGPYIyBs5d/7BQyigccKIG+m94HDme6oKEaF4Hkp2Y6xFs9ynRgUDEhsZvFYnu AZ2N0Z+WPB8r96Y0dvBpSZNcPJt4s5XKz/NRIplRIGID4QXyVaT6IUgiPAv2oivR2yRc Gi4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=c5Ieyc7e; 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=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b55si1089243wrg.376.2017.09.06.18.59.41; Wed, 06 Sep 2017 18:59:42 -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=@gmail.com header.s=20161025 header.b=c5Ieyc7e; 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=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 240E3689CF7; Thu, 7 Sep 2017 04:59:37 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CA9FD689C4F for ; Thu, 7 Sep 2017 04:59:30 +0300 (EEST) Received: by mail-qt0-f194.google.com with SMTP id p55so4924476qtc.2 for ; Wed, 06 Sep 2017 18:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=fYbZY6rifkes7wqbNl2FcqmU45NgJ7C8e8S/39KT4lc=; b=c5Ieyc7eq6a5nVvqbeBmzeVtHtIwg8KguD8K9yPDt7yJRqGYGrAfjHODZVgn025pi0 hyaiTPa7NYDDcL21Kpclt5avQDEKemXiU1XLSa6fg2rlcF4jhzZNLPqh48UlwBXt9FTS vtrZqklwcTsijZ1Nsj60XqGgTJa85kDoG9wLx8XGmiU5MYBMvwVgQBRa31w6AgDZO+37 Fmu8C0A0/Bj1Pm5l0NwIeZhvHJ5mdzHtHsBfuSU+oeYWDUgM5meJPdwez/RnMPTlUB5b GsCFR+tZjoFNKCq/uINQsvExE2LKN+hnadOahIdHt+XfEL/f6JRXDSxxdmnhfi2IV+lW hXdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=fYbZY6rifkes7wqbNl2FcqmU45NgJ7C8e8S/39KT4lc=; b=VEkZVtWjnAqHysFg031OTIg8JicGanOmmvYQDQPKyz1tAQuHCaGuYV3cCHqOnR0uEJ jav6O09ypEKnzz4ANTcgh8vYmSgV6/ULXO8nBweWbPJKou3YIriiyiXkerbl65yaseZU DYG6W8Dah5S+AKafPTSHmSLWazk9D4N9x/H3ndwi6PM2E3RLkRDeJQDqM5D0ZTGhg3gX QhjyDXfDw/LauCeAzsAVyEw8v/feVXBmWaIQW+N1oRxvB7mb/rW2ISu5FWw/wKAIfTkk EK2wLR1sovFKqUGHKKyYND/216qnRTqoc/FzbjRIO7Wm2htttlwqRDOjgISL6vVBLMV6 WvOQ== X-Gm-Message-State: AHPjjUhxSo4PhoZI9gDh3Z3W92E+A0SGbvmuG+0eGUXAzPEk28uWa+2P wKATrC7rPBL8DzOn X-Google-Smtp-Source: ADKCNb7+s4WFEQf3mzD+v9plqSB45ZaYESfgScplWT70LuDTsrnV6vTgWmyCSGRK4BAtaozN6DMPoA== X-Received: by 10.237.33.102 with SMTP id 93mr1668611qtc.267.1504749573306; Wed, 06 Sep 2017 18:59:33 -0700 (PDT) Received: from localhost.localdomain ([181.231.60.193]) by smtp.gmail.com with ESMTPSA id s7sm924014qkf.4.2017.09.06.18.59.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Sep 2017 18:59:32 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 6 Sep 2017 22:59:13 -0300 Message-Id: <20170907015913.6600-1-jamrial@gmail.com> X-Mailer: git-send-email 2.13.3 Subject: [FFmpeg-devel] [PATCH] avfilter/vf_tonemap: don't use NAN constant as an initializer 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Netbsd: src/libavfilter/vf_tonemap.c:314: error: initializer element is not constant src/libavfilter/vf_tonemap.c:314: error: (near initialization for 'tonemap_options[8].default_val.dbl') DJGPP src/libavfilter/vf_tonemap.c:314:87: error: initializer element is not constant { "param", "tonemap parameter", OFFSET(param), AV_OPT_TYPE_DOUBLE, {.dbl = NAN}, DBL_MIN, DBL_MAX, FLAGS }, ^ src/libavfilter/vf_tonemap.c:314:87: note: (near initialization for 'tonemap_options[8].default_val.dbl') Signed-off-by: James Almer --- libavfilter/vf_tonemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c index 10308bdb16..d2c7ffa831 100644 --- a/libavfilter/vf_tonemap.c +++ b/libavfilter/vf_tonemap.c @@ -311,7 +311,7 @@ static const AVOption tonemap_options[] = { { "reinhard", 0, 0, AV_OPT_TYPE_CONST, {.i64 = TONEMAP_REINHARD}, 0, 0, FLAGS, "tonemap" }, { "hable", 0, 0, AV_OPT_TYPE_CONST, {.i64 = TONEMAP_HABLE}, 0, 0, FLAGS, "tonemap" }, { "mobius", 0, 0, AV_OPT_TYPE_CONST, {.i64 = TONEMAP_MOBIUS}, 0, 0, FLAGS, "tonemap" }, - { "param", "tonemap parameter", OFFSET(param), AV_OPT_TYPE_DOUBLE, {.dbl = NAN}, DBL_MIN, DBL_MAX, FLAGS }, + { "param", "tonemap parameter", OFFSET(param), AV_OPT_TYPE_DOUBLE, {.dbl = nan("")}, DBL_MIN, DBL_MAX, FLAGS }, { "desat", "desaturation strength", OFFSET(desat), AV_OPT_TYPE_DOUBLE, {.dbl = 2}, 0, DBL_MAX, FLAGS }, { "peak", "signal peak override", OFFSET(peak), AV_OPT_TYPE_DOUBLE, {.dbl = 0}, 0, DBL_MAX, FLAGS }, { NULL }