Message ID | 20240223143115.16521-30-anton@khirnov.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:26a3:b0:19e:cdac:8cce with SMTP id h35csp994133pze; Fri, 23 Feb 2024 06:35:05 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVSKIfK3hIXuaJ+XmccBRxcJT+YOKuO8k61qsf8TvYYkiDjfOkTFGkOpjVmJupdX3iIxb1hOWQ83Q3yGGJLeEW4BN0tfDrccm7KDg== X-Google-Smtp-Source: AGHT+IERPH2r8mIFDNJWl+HprbIqK3Y//iH2XItZLCiEqwVaMZRjw5/U+K2Td+XVaR8SZB/O4D/w X-Received: by 2002:a17:906:d20d:b0:a3f:ce31:64d6 with SMTP id w13-20020a170906d20d00b00a3fce3164d6mr1194313ejz.10.1708698905196; Fri, 23 Feb 2024 06:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708698905; cv=none; d=google.com; s=arc-20160816; b=WAtQZ9SRDeoY9lEKHuIpvrlvDOIkzBbyK64xNbfExa5dNrAt7Bqmbo1B9tF5wMEdHn VBg/xYnoFQYcJDm/lbVvEvX0LGwFW554qebuBmbtLbHpk7JVhCE48NtyO6zSK7QIvjjh gizVHosx6xzhYiURaSjK21l/oi0m9I3cgZ8/2Uq5FlNGr3R/l7mF4EeiRUhVIuntOEQe omPEe5mADAqpy4lS6KfkbAD+J27RH1YKENgbfciYP5RtfZnNTy4yK5mJiKyZTlVhFZie KBMHiIj+GxIg19FgA4HdBrOB9gFuD9rPm3OifxZbjAZ7WVE6HC5JzPckPkY2tqPW2i9J ZWzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=oMFKe/1d4tHyWfKDIcjO/V7SFYvjzKPp346tZz3ODIQ=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=nl2CstPxNRh44mpU1qIs5dUENAWckbYiWK352oM1Tx7gl1K0t+v298kjH39alMrNqO CPZcJSKKm+Bp9ZZqHohtcvb7B/yyAwEIfrJLuW8/NL2sG2JmTNx3Nf7cycnV30D/QDPj hQ9hA/Lp1t+FLHhqkTO2kw2MJxMs7sj5Mx7hSrf5Ac/Y0JYMvBGFMJX7jAtmmq2SQVPE j20VEH1ypwQG612dpa2YUBVPPWalbnoEA96WrPM1gPdjGyNzGk53z4K4QGUkkXThnICP QSTNJQx68SHJk5apN2SSaC15QWpesafDPvmBIJyxc7clKQSgl+jIs7AP7SR83meAiUg3 uvSQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=hZSp1uQe; 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id bt22-20020a170906b15600b00a3cef5fb400si6197093ejb.391.2024.02.23.06.35.04; Fri, 23 Feb 2024 06:35:05 -0800 (PST) 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=@khirnov.net header.s=mail header.b=hZSp1uQe; 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 8BAF168CAEE; Fri, 23 Feb 2024 16:32:02 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2D7AE68C6D3 for <ffmpeg-devel@ffmpeg.org>; Fri, 23 Feb 2024 16:31:36 +0200 (EET) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=hZSp1uQe; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 2095C4D59 for <ffmpeg-devel@ffmpeg.org>; Fri, 23 Feb 2024 15:31:35 +0100 (CET) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id cxhxm2v0EwYr for <ffmpeg-devel@ffmpeg.org>; Fri, 23 Feb 2024 15:31:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1708698688; bh=ctF8Vwbp+i9XsNbdA61/+VEtz26ZeDKwpbgM0mEeIM0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hZSp1uQe/lEmDj0L9snakkaNIz7xaHMLZ1z9KxqaT/tdnjkFMhB/FiPEyxoW6wqFh +wbHg6mgEl3/l63Aet2Wskb0CMulA/B48gU1d+6lngWO71PxUZvP4PtNnpsD82Q80z 0Vw/RHWFNavoxw2oKg6CaO5dKrdN/Am3PgxUByplTOCiCn74RHKeRblPYvvSqXQgrM v6xTIuFim8PwnRAsRMY434d1pahG7wSr8M7FyIsQBW4P1FKr5/WL3c6IyWI6W1+Xku RvdHdXxo+KMQqHfggT4vw4U1wRbO1izSnA/twY1yBwHOzhJc0eD6IU6bSHEHEG3HLt hGg9/W7GrRB5A== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 38A3B4D61 for <ffmpeg-devel@ffmpeg.org>; Fri, 23 Feb 2024 15:31:27 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 315B13A25E6 for <ffmpeg-devel@ffmpeg.org>; Fri, 23 Feb 2024 15:31:23 +0100 (CET) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Fri, 23 Feb 2024 14:58:51 +0100 Message-ID: <20240223143115.16521-30-anton@khirnov.net> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240223143115.16521-1-anton@khirnov.net> References: <20240223143115.16521-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 29/38] avcodec/webp: respect side data preference X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: MEQkRVOZVbcT |
Series |
[FFmpeg-devel,01/38] lavu/opt: cosmetics, change option flags to (1 << N) style
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/webp.c b/libavcodec/webp.c index 54b3fde6dc..9308ea2b69 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -1500,11 +1500,16 @@ exif_end: "VP8X header\n"); s->has_iccp = 1; - sd = av_frame_new_side_data(p, AV_FRAME_DATA_ICC_PROFILE, chunk_size); - if (!sd) - return AVERROR(ENOMEM); - bytestream2_get_buffer(&gb, sd->data, chunk_size); + ret = ff_frame_new_side_data(avctx, p, AV_FRAME_DATA_ICC_PROFILE, chunk_size, &sd); + if (ret < 0) + return ret; + + if (sd) { + bytestream2_get_buffer(&gb, sd->data, chunk_size); + } else { + bytestream2_skip(&gb, chunk_size); + } break; } case MKTAG('A', 'N', 'I', 'M'):
From: Niklas Haas <git@haasn.dev> --- libavcodec/webp.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)