From patchwork Fri Jul 26 02:15:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 50746 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a830:0:b0:482:c625:d099 with SMTP id z16csp204591vqo; Thu, 25 Jul 2024 19:21:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUNKmQ1ix5RFCJseOjVQoMbu26MxoNCTvA62aNagnIsahkmNzCURzkXk1mHoXL8UEF6NKjyJUsQSiSqH2Bfdnn29HT3F0G4tt/kSw== X-Google-Smtp-Source: AGHT+IGtM46wwhlgdZ6X7VsUoJSeMJSB/J9lBOlOJxxSiHFBgxdVdqI7jxwoZAQw1VqPg+PiRQk5 X-Received: by 2002:a2e:8242:0:b0:2ef:1f51:c4ed with SMTP id 38308e7fff4ca-2f03dbf3222mr23276461fa.47.1721960517375; Thu, 25 Jul 2024 19:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721960517; cv=none; d=google.com; s=arc-20160816; b=yA8+A272FFp4d1Lj2KA0Rp07MGiLAWIk/Fv85U1k/L2a9d5ymI7yXHXoSOaGCXPyJW QY/eehP6uAJIYKhjWnb1kR2Un/gIGHxKZ4ZNEH/T3NEoBXLO87Ik1LkbM7NC9tPjbuPP aSdp92FJ1g3SJcd/d3DekGOCa9n6Wqy0Igdc3bJiVHTThrpfTF+LE+/nHglIUctXvKyj iaQx96hDJVTW5nZ5HjLgTe8ncCMgnjqKHtSsS6n6uMDnKmdGaOMEmRX9bpmHsBtJeQ8O sUJ5XVLQuCtfXcdy4CgiquEQslfG2wPskH7Co15Ribjodw6uU0rUTQnuBhoeIhr6q0pC rUfA== 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=sK8+5cFGTdPlhItxEqWjJSHE4zowZg8fNRNBUhmGuFo=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=p0XuyqQpmvdzeUJKgwJOE3NMs6lrh+exXRrmDgSNBCheQEhETltjWM0MpeVdfphetR ZCgjCUl8fCcdDixXl84cNoEa2qx3hl5L2SsdGUdS82FA09X3XDoDZRWir5OqUeOmduzz QJuncmyemd4F54lDRx1ZtHjqi74J+fdAVNozYNnsQX2kuZelw2MB5dD+p2LSBaWZ4WZF rYAOntr98JOFFuUzndzZ+cF/hjNOuRi8MBum6U0l3Lz0/ZMvHJ80GAJTtVTbrzsiP6yH vHT5vx0YX4/d7W+47G9/GMGtPIFc+oILvUG+FpbRFlC8ubViDKb5Vs538mNBq841f1Kj dIog==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=JBzlP4Af; 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=QUARANTINE dis=NONE) header.from=gmail.com; dara=fail header.i=@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 38308e7fff4ca-2f03d151374si6807861fa.337.2024.07.25.19.21.57; Thu, 25 Jul 2024 19:21:57 -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=20230601 header.b=JBzlP4Af; 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=QUARANTINE dis=NONE) header.from=gmail.com; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AAA5468D6BC; Fri, 26 Jul 2024 05:15:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B065768D45F for ; Fri, 26 Jul 2024 05:15:24 +0300 (EEST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1fc66fc35f2so1263405ad.0 for ; Thu, 25 Jul 2024 19:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721960122; x=1722564922; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=sem0ajSW+IgPFfHryO94IcScE2xUNmBEQqdfuffdJIk=; b=JBzlP4AfCjDl1jkhcRCauO2cdOXuYbEGPoGZFBKUyF2V/2Xop2tvc0rCaUzisKED5F Mnqsp1x4HDgSonfQY7yyN8NvQVrOM286WUWehqnAJ4tQpenWmYQNw3DmFkUP6HnQq16O iV3KeiZzkpAL/R9KvBCqIjNkZGZDQx4pQ8zvGTaIM2PFplPhNJ/5EscuAA9vQcYsURC6 vre1ZzsDYzaL3T6wZlV1ENd2mLvp05Zozhk4ugItQB75xw8VJhPTdDV2XQM4Ass+0j9b VrBD2fr1l8Xj4PrMv2T23AhsNEIyKMb4jwQ59NiaMgwOSucmBP4Yy8LQLSFHVgVhWTuE fMYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721960122; x=1722564922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sem0ajSW+IgPFfHryO94IcScE2xUNmBEQqdfuffdJIk=; b=YDF74K05DCZ6Yvnj1bWBmJ+cdwls+oDZiB4N1CEJqfgpXJbKWlY9Sl5SvjUG+4NeYM Wulu0NC+4fKdkwHVGv2W95DJ3XnrRhQETmDPfBUphBTn3TDEm0EW0IVkMbl3avRidLRg ra5+GRqL96hlO+390ykazHBpghMM7NOYt7W/RUXCd4GQsmQhXY9oHFs88+X9B7j/NspS ftuv5e154dEFNV5u1dV2fgVZRt1N8jkFPv8WYC1x8Zqm2FnZDrzcHOjMGFkNeLpB38Q2 LCNTLJAY1v148hIz4UyND0koP4VW9MWoSBb1siVGrzM2EbaQUL1ScXD+X36IU2VtklRQ LEPQ== X-Gm-Message-State: AOJu0YymBSyy3Et+7jeph7fS26FZb9P8TGO3/CakOJJR27gZtpPxDeZa hdw3MIjOjnp2alkzhQGyI4cDrc7+ywTdrMd8pejWBjxfV20h0pmwopfeFA== X-Received: by 2002:a17:902:e54c:b0:1fd:74ac:e6b8 with SMTP id d9443c01a7336-1fed26cb6demr84758985ad.7.1721960122450; Thu, 25 Jul 2024 19:15:22 -0700 (PDT) Received: from localhost.localdomain ([190.194.167.233]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7ce6869sm21077715ad.78.2024.07.25.19.15.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 19:15:22 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 25 Jul 2024 23:15:33 -0300 Message-ID: <20240726021535.6354-2-jamrial@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240726021535.6354-1-jamrial@gmail.com> References: <20240726021535.6354-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/4] avcodec/amfenc_av1: use AV_WL32A 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: UmOR7RVGH27b Signed-off-by: James Almer --- libavcodec/amfenc_av1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/amfenc_av1.c b/libavcodec/amfenc_av1.c index d984779063..97d1ea025c 100644 --- a/libavcodec/amfenc_av1.c +++ b/libavcodec/amfenc_av1.c @@ -535,10 +535,10 @@ FF_ENABLE_DEPRECATION_WARNINGS avctx->nb_coded_side_data++; //top, bottom, left,right - AV_WL32(crop + 0, 0); - AV_WL32(crop + 1, crop_bottom); - AV_WL32(crop + 2, 0); - AV_WL32(crop + 3, crop_right); + AV_WL32A(crop + 0, 0); + AV_WL32A(crop + 1, crop_bottom); + AV_WL32A(crop + 2, 0); + AV_WL32A, crop + 3, crop_right); avctx->coded_side_data[avctx->nb_coded_side_data - 1].type = AV_PKT_DATA_FRAME_CROPPING; avctx->coded_side_data[avctx->nb_coded_side_data - 1].data = (uint8_t*)crop;