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 349AE46B37 for ; Wed, 4 Oct 2023 12:30:01 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7D80268CD29; Wed, 4 Oct 2023 15:29:08 +0300 (EEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D12B268C919 for ; Wed, 4 Oct 2023 15:29:00 +0300 (EEST) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1c434c33ec0so14807285ad.3 for ; Wed, 04 Oct 2023 05:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696422539; x=1697027339; 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=/81JKiHFs9+v9H6q6O73z46O38J42xATsg51Ce76Xww=; b=I15xuJdDYMYEx0mI2g4Fn03q7A7Uf5CmYCDIy+4BYmKCdv2uhPxAV24+jcWTOhX3pP UZFKsB+DhMhuTRq6p0iZGxZZkL0orfJjRPfzY62QzGnXnqqLKlX1N/jmU45Skv5d61VV TAeVA+ER5lqWrYZ25hpGOknWppu+lssDYHggjfXzGbRXGflyt2Jhu4P3TvZOloAQuTNd AYMQmivdzgk29uDvILj9haR48pXzQmuydwodrnezmUkd/8fQJx7/6zS1eSQSeieMf7pc IeTSwSdaDxge+UFEL+DpFfQoyc0gMlzMngLzhWM8x++Fxk7ipU8CiuSkupoeaDXEUCtx bgnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696422539; x=1697027339; 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=/81JKiHFs9+v9H6q6O73z46O38J42xATsg51Ce76Xww=; b=JlDlt758BrZIfYk50T/Bj2nfHaMBuHtPFc8BXfxXVZnOfz4C6/EuweWHlnA1ROcgzp Jwc+IZY+ZwnRST+VrWU4A8AAYapcRPaAiox/xiCafOI7/j+EWO4GheyqeSYyMzkTjTtu wcdepDOwWKSA0Yv5seV2/OMHCxI2qqV/ygOpCG6t0cJ6iAOyFPniwZxIgxlreW/E7kFW kc5Cimb7ioFKA0ihcAiV9GDjC3V4GqMouJvUpF4Xi/YypJ4mEjj+Uz8/OE/I1bbok/Nz 3d3iiWqH0e81Y3AghAhwAeZl1AK/waiUFDORqkxiiMJEBFbiwrfT0OC/aMbvulM1RwTO VUww== X-Gm-Message-State: AOJu0YwtXkbpHvTnfwz2zCu1E92+0fyT2QKu2aH9JWG3SDaNLN/wzrBg OphxXBj3cN1P5Do5f8PGFOEgAbE0UdE= X-Google-Smtp-Source: AGHT+IGHujl/Uo0eFLB7+/GFWV03AxRGoEUAeFttkjni0d6r2dS9dy56Ay/f2GqTv5tzVrt220N8qQ== X-Received: by 2002:a17:903:2587:b0:1c7:54f1:337e with SMTP id jb7-20020a170903258700b001c754f1337emr1896973plb.33.1696422538770; Wed, 04 Oct 2023 05:28:58 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id h11-20020a170902748b00b001c57aac6e5esm3551831pll.23.2023.10.04.05.28.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 05:28:58 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 4 Oct 2023 09:28:44 -0300 Message-ID: <20231004122849.56604-7-jamrial@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231004122849.56604-1-jamrial@gmail.com> References: <20231004122849.56604-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 06/11] fftools/ffplay: stop using AVStream.side_data 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 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: Signed-off-by: James Almer --- fftools/ffplay.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 006da7ab57..f5354575c9 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1916,8 +1916,13 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_DISPLAYMATRIX); if (sd) displaymatrix = (int32_t *)sd->data; - if (!displaymatrix) - displaymatrix = (int32_t *)av_stream_get_side_data(is->video_st, AV_PKT_DATA_DISPLAYMATRIX, NULL); + if (!displaymatrix) { + const AVPacketSideData *sd = av_packet_side_data_get(is->video_st->codecpar->coded_side_data, + is->video_st->codecpar->nb_coded_side_data, + AV_PKT_DATA_DISPLAYMATRIX); + if (sd) + displaymatrix = (int32_t *)sd->data; + } theta = get_rotation(displaymatrix); if (fabs(theta - 90) < 1.0) { -- 2.42.0 _______________________________________________ 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".