From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 64ED84AAF0 for ; Fri, 12 Jul 2024 17:49:25 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5E33768DB36; Fri, 12 Jul 2024 20:48:23 +0300 (EEST) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DF6F068DAED for ; Fri, 12 Jul 2024 20:48:10 +0300 (EEST) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-58b447c519eso3064840a12.3 for ; Fri, 12 Jul 2024 10:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720806490; x=1721411290; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=YDkXWN6HKTSzua1pkduXvx5q2HVFxWIwBoAHLPTeCHI=; b=etUWLjU/Fb3IQHyTpWYR1zECdPD2oa7P0MC6xq4rX42azjCtRmWeqwJaCzreubmeYy ZSIExULYGY783B5zpMLPd5uUwlS5YaZnE3+dXllMLmtHoY0rmGgdJLVzZDf5sfsaSTDP QovMHYgux4OsyX4tRvwomm9pGmRx6a0sC57AB14UW2nOO1zXnrVrti/XXnbJ7ItNmrKP mfvZsSvvAHdADrjf84MAW3zXAbd6q4NNqrqjHlV4vCSz19+KG+Ce7gfsyb82QrGYH9uM tosk2/Mj6eh+Pvuceyl6DBhjmG8CfHdH4gh2plfIQNAFTEmIvsS4xFe0TNe2tvel44JL Oz1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720806490; x=1721411290; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=YDkXWN6HKTSzua1pkduXvx5q2HVFxWIwBoAHLPTeCHI=; b=UAQJRj/+gNuZQaDHVqv4h4l0Pa25C1/HN3/QIjM8t+RtSz9x0ZPCpnz+LHOG65idNy LYsZ71rD0juHYrVc8i9kM91zRglsBO2CMN7VZmzxMRRqWkL39OY5StpxyB2RpQmgVw4w RTiuZ2QaNaTpl9teVpLcxcu9VV/myHazfqWMdbpHlNXNpBKczSxornk6ncbwqx+l8eIF nJTD5p8NBglRPcrlQohU2K3tlVPbFoX8gXb3+KKH4XbJP1zhHIc8Q1MGjcdDc6phLsEa qyKtr5BeUzhCyep+Gze2ZkCcI6Fh2khzt4zNqvusELtlzcmVnFWnG7ZinqbUzz5DMcIy aLMA== X-Gm-Message-State: AOJu0YwyXtUeHtbSz1ae7VNP/ckpR+twMNcYCPK2zx+1Hy0QugdNUH3W qqEl9iJaNnlMFghj8/hTGIBxTZ2RKWAMAkHpUZS9HKVqJ2ZCXsl94RNaGg== X-Google-Smtp-Source: AGHT+IGYi6bMzsF0csTbqiQ9W+eJrGXAgJ7QiQJF/7+k++8ddVB1ezUFZbKbpPOqguvKoKFPalNeIg== X-Received: by 2002:aa7:ca4b:0:b0:58b:e192:3632 with SMTP id 4fb4d7f45d1cf-594bb86ad0cmr7257330a12.27.1720806490165; Fri, 12 Jul 2024 10:48:10 -0700 (PDT) Received: from localhost (p200300cccf1e25001072fbc25e6664b9.dip0.t-ipconnect.de. [2003:cc:cf1e:2500:1072:fbc2:5e66:64b9]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-594bd45a1b6sm4753150a12.60.2024.07.12.10.48.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jul 2024 10:48:09 -0700 (PDT) In-Reply-To: Message-Id: To: From: "Marvin Scholz" Date: Fri, 12 Jul 2024 19:30:32 +0200 Subject: [FFmpeg-devel] [PATCH 09/11] avfilter/vf_coreimage: silence AVFrame deprecation warnings 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Deprecation warning need to be disabled here as we set deprecated fields. --- libavfilter/vf_coreimage.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_coreimage.m b/libavfilter/vf_coreimage.m index 38355414bd..45b16cc48a 100644 --- a/libavfilter/vf_coreimage.m +++ b/libavfilter/vf_coreimage.m @@ -296,14 +296,18 @@ static int request_frame(AVFilterLink *link) frame->pts = ctx->pts; frame->duration = 1; + frame->flags |= AV_FRAME_FLAG_KEY; + frame->flags &= ~AV_FRAME_FLAG_INTERLACED; + +FF_DISABLE_DEPRECATION_WARNINGS #if FF_API_FRAME_KEY frame->key_frame = 1; #endif - frame->flags |= AV_FRAME_FLAG_KEY; #if FF_API_INTERLACED_FRAME frame->interlaced_frame = 0; #endif - frame->flags &= ~AV_FRAME_FLAG_INTERLACED; +FF_ENABLE_DEPRECATION_WARNINGS + frame->pict_type = AV_PICTURE_TYPE_I; frame->sample_aspect_ratio = ctx->sar; -- 2.39.3 (Apple Git-146) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".