Message ID | 20240304130657.30631-19-anton@khirnov.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a919:b0:19e:cdac:8cce with SMTP id cd25csp2790217pzb; Mon, 4 Mar 2024 05:10:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXuDWkk/zgGi0evjRS83yLyJwy7qoEg0oZnQsk4NalkldSWM0an+oKhp8Km0/sq20w14sZZo4SlX4bipqheJL9iRrNTbrNsNfLGKw== X-Google-Smtp-Source: AGHT+IFNurDaVKlglxQp/uZmriz1PYX/e1pvobbko/Vt8OIAKxT9S/lT2B6uca/MEUfoS6LFC0vt X-Received: by 2002:a05:6512:3b06:b0:512:fc00:7c6 with SMTP id f6-20020a0565123b0600b00512fc0007c6mr6597959lfv.51.1709557809683; Mon, 04 Mar 2024 05:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709557809; cv=none; d=google.com; s=arc-20160816; b=ijPPrLsEFVmbepNwLkhDQoMQ7F2eiyRuTDDAytxQsy41ZIyn03XNL40ylToTWOgl77 LsJiyb/VsvkpCKFbqL1ze59vIB/U/zIBEiLQzRnykyBCbe0LWq173D3x6NeBTX7RRV8A PlcHUsLkMS+XwuYkr40uBC2XQMTZl9KDLeU4+ch4Zz++EZ0hV4GNahKqtr0vC+ngC9yM X8IbsP66L6T0Ppagtwj2bFzpGx51lstIwNvN0lx2+m7ScuZUX7mRgMwpJ/qgA46FY8iS tSr7rIqxzNYB2igwqmUdY9kP31Fvy3UcFTyW+sbDinCvygXYm+W8+lOEeDx7/UQKyG0X ZcUA== 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=Vn81xhBV9OQhc68k7l2HQdk1bi9GTaaPgR5h8OEwCWI=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=EwApq160tuTdN7JafzqOswo6sgxgapUW7OnpNwdc1Z/sH03VFwdtgb9hVWmX3dSWc3 EipEcCjUcf62A4Zym2OSJ2FsRju0zIxG4jPsNfnbUf5WaAvHpXs+SNAls6G7/CjIM5GZ HMO4edVsbbDRqwyEkiCLZNKcI+8af9ftsG9IT1QJ/5O6GR3VdDY8LZIyZyW9gRgxoW3g QFQNL4uWtEzxIaValIAOixmj95btIqL6ny0IeTEscNKg/qDZgiqqKuJ5tg4NuRoumuih y2OlhNtMvlwG79o1jegrSTmeKMDydy8O+woCKHyasW7efsQPnYR3S6I0HdHqkE5EdvaJ zb8w==; 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=cIMp9nxw; 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 n14-20020a05640205ce00b0056618452b17si3985820edx.186.2024.03.04.05.10.09; Mon, 04 Mar 2024 05:10:09 -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=cIMp9nxw; 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 6429868D49F; Mon, 4 Mar 2024 15:07:31 +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 82C8C68D447 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Mar 2024 15:07:14 +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=cIMp9nxw; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 7A6324D69 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Mar 2024 14:07:10 +0100 (CET) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id LskBo7jt9-JC for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Mar 2024 14:07:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1709557626; bh=khHDHEk4yhqNAUCjyNi5P+gSIPzdHRqQ3w9yUH8aS5M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cIMp9nxwMnImoytKn/el0f30nox9sySX56bo0cc2svt3jErQjWhrH5uP8BGzjSAZA Lrswpk+9IU9HkIz2B9igc96yWE86D2OIRSj3GmLmt1dBKutfUL2VJzS3+rh6hnJGUC I7nnoScJJSXpXxqRlV3salSA7osH9cjj1cdUjCgTQgRp/coxOrXMXl/oP8wyTWURXN 4YNLp/Gv6xcK4OOUpxk3Yr9YztMN57ILrS5a24zi1NsCTWJ/nhZl3HBBQZcWM4YNjH mPTW2ZGOpUq22ZPu81KziXq7WoIp4lRTL+V4rf9nkaKVPpbDe0ZPqrdt5/gdNf7wKq 0fEeKv71A9fjA== 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 A2C894D68 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Mar 2024 14:07:06 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id BB1FA3A159F for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Mar 2024 14:07:00 +0100 (CET) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Mon, 4 Mar 2024 14:06:34 +0100 Message-ID: <20240304130657.30631-19-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240304130657.30631-1-anton@khirnov.net> References: <20240304130657.30631-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 19/29] avcodec/tiff: 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: P7jE259k9dW0 |
Series |
[FFmpeg-devel,01/29] lavu/opt: factor per-type dispatch out of av_opt_get()
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 71cb703821..cb4d378753 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -1706,11 +1706,11 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame) if (bytestream2_get_bytes_left(&gb_temp) < count) return AVERROR_INVALIDDATA; - sd = av_frame_new_side_data(frame, AV_FRAME_DATA_ICC_PROFILE, count); - if (!sd) - return AVERROR(ENOMEM); - - bytestream2_get_bufferu(&gb_temp, sd->data, count); + ret = ff_frame_new_side_data(s->avctx, frame, AV_FRAME_DATA_ICC_PROFILE, count, &sd); + if (ret < 0) + return ret; + if (sd) + bytestream2_get_bufferu(&gb_temp, sd->data, count); break; case TIFF_ARTIST: ADD_METADATA(count, "artist", NULL);
From: Niklas Haas <git@haasn.dev> --- libavcodec/tiff.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)