From patchwork Thu Mar 30 18:00:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 40924 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp119915pzb; Thu, 30 Mar 2023 11:01:32 -0700 (PDT) X-Google-Smtp-Source: AKy350Y8SB3E8IdUoiiwRj9UEaP91qk40RImCipJSpmnzxGOy0Ns9uUgTeiQ5zi+AXic1L2fKSEs X-Received: by 2002:a17:906:7c53:b0:92a:11be:1a40 with SMTP id g19-20020a1709067c5300b0092a11be1a40mr6952172ejp.11.1680199292688; Thu, 30 Mar 2023 11:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680199292; cv=none; d=google.com; s=arc-20160816; b=gL5frt7KXzTFkRF5dhCKVWonRb+3OK1W9v3XAw6WfxvF2NW3j8BQGmGxYByPSMQM3v eLEfqemF8XSgCx6wQxQ/zf2pB/69amBkWStl+0ifeq9iMJTCxT7yvbZxDIWE6yh7mNZX D2htjsLJO0hJeDJFu6tT2AMtXDtff6lqSDxygASfnZxCt+/2fMVXezFndFs3Hnz7ess6 3sd8NuNg/yaybNSbxCEWDBaUkjNlLkMZq16Ib1PkqcuzUWzkMNlXHzPpH2BFm+PMy5EJ PZKrwJCyqxpCH9S3eEUlUDIw4KImh4nfQr9ftf2YovPvlDu7ropsNx+83qsUhzKKej8t aC+A== 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:references:in-reply-to:message-id:date :to:from:delivered-to; bh=HOc+QwKwEbb57sq0oCJCDvD15mzFN9w7hJw3JyYRHCk=; b=AI0HjDg+2Koh9TM9ynSNYOeqdvCqJgCcjVV5XDshjB7F2Ej4qhZaDxKEoO9Kcvpror EDn2yl+sMon/ytmd7F7q2aN+jciSLnxkBC0wcCmg4+1R5ujp7EvLijnP0W/RYd5NdehN +/0UDJD1X5QrbLQ/65noQxIVsee891btLMwbuTi3UMIUqrsoyyqBYRyuTlcMa52lWGfE c+vj9BJAndxQ5bhUw5d4RnszT6oqnnVBv36XYe7iEA0dseEQZGrfYk1PQuaV3IUCDrKk DM/+X1e8n3rRyW8f3bhdvZkfC/kiZX6eRJrewepZyT8bW1wjYrn/JXJYUCJwMDW16d0m xPiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id l22-20020aa7c3d6000000b004acb24be0d2si306016edr.315.2023.03.30.11.01.30; Thu, 30 Mar 2023 11:01:32 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3DAD968C3A2; Thu, 30 Mar 2023 21:01:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 802E368C387 for ; Thu, 30 Mar 2023 21:01:12 +0300 (EEST) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id A64F4E0006 for ; Thu, 30 Mar 2023 18:01:11 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 30 Mar 2023 20:00:57 +0200 Message-Id: <20230330180106.11275-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230330180106.11275-1-michael@niedermayer.cc> References: <20230330180106.11275-1-michael@niedermayer.cc> Subject: [FFmpeg-devel] [PATCH 02/11] avcodec/j2kenc: remove misleading pred value 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: It80cqWU8wbH This field is only checked for being 0 or not and not zero means 5/3 Signed-off-by: Michael Niedermayer --- libavcodec/j2kenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index 821967f9e43..0e23a8a8399 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -1729,7 +1729,7 @@ static av_cold int j2kenc_init(AVCodecContext *avctx) if (avctx->pix_fmt == AV_PIX_FMT_PAL8 && (s->pred != FF_DWT97_INT || s->format != CODEC_JP2)) { av_log(s->avctx, AV_LOG_WARNING, "Forcing lossless jp2 for pal8\n"); - s->pred = FF_DWT97_INT; + s->pred = 1; s->format = CODEC_JP2; }