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 832374791C for ; Wed, 27 Sep 2023 13:14:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EE37368CB31; Wed, 27 Sep 2023 16:13:21 +0300 (EEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C2D0C68CB15 for ; Wed, 27 Sep 2023 16:13:12 +0300 (EEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1c0ecb9a075so80338805ad.2 for ; Wed, 27 Sep 2023 06:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695820390; x=1696425190; 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=80yAJmLgD0VDMaC+qhrKKEuhySFN2/WJAIaLAa2BiBM=; b=ik5E6gx1+I+Ygm6CssqYigF0txTsZGbVHGlCIQTwaZe0z+i2oUWG6OYIndPNyBIQeK BNZk9RqxmkFtNd2NGjviktVNnA0hOw72ETiz+jC85UDbas7xh5pjh3RoVdu+jvvjobQc IqhbQ2yWFcfWVe+95huGBH/ite6gnH/vPo5LxNH3gpV5AgSoCuBEirkg75pK2qHeLcx5 PAMrWpl4oJd7Tz7clKCsQzT0D8vhiL7M6GFk9ZbEBiJ3XkuzXh5oqXyA85MscmCac9om Y2JxSOyup+T+YTcfSJC2l+H5ssgHoVwrxlnDOYiv0ue+uYJoh4URFgNEogS7Gx66tUs3 QQhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695820390; x=1696425190; 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=80yAJmLgD0VDMaC+qhrKKEuhySFN2/WJAIaLAa2BiBM=; b=ep+4DoQ7MdAJoqhIbTbbEbz4LhPEYh6JdctqpFT0jIeGlNiTw0dxQduSxnCCyCdGBQ 1gs0f9s/zm2n9scMYGHb1VyjPvApExl4v5Reb2ijYr44zWLyA0RP0PfgXpGK2cDW1Bbq JW7Uy1RGbresDlGJuJ+TkCbeGcwrWLriTYSScJlhcjPOi1iMCwTKtt+j6Z0Y4IYXIkjP lhTkH8JUO6396hhi1oIDf+iDyKU6AcCFb/Bq/KNjOuTFMXpn/mS1+nHYoa7yyY3he6yJ T8r4SKnUeqw4qyfimmRKFJO0Fb6sXifj58AKCGqLgJ6TWWTNQGnFvXNLiq/BjB300vdb i6PQ== X-Gm-Message-State: AOJu0Yw9cJJ4AxHRnrmKesJGI7bqs0rDTGOIxGfhr9c2tLbLowKSDOY0 stEUeRngFZ7g9XQ+aeYapA9UDS//JyQ= X-Google-Smtp-Source: AGHT+IHyiAqQViURgF88mu2H9tpGG3dUqmXbym9hoABNrkoT0r3YlA8m5aTkyPW78zx1THJ75MfufA== X-Received: by 2002:a17:902:e887:b0:1c6:de7:addd with SMTP id w7-20020a170902e88700b001c60de7adddmr1801833plg.48.1695820390648; Wed, 27 Sep 2023 06:13:10 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id v10-20020a1709029a0a00b001b53953f306sm13050600plp.178.2023.09.27.06.13.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 06:13:10 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 27 Sep 2023 10:12:37 -0300 Message-ID: <20230927131242.1950-7-jamrial@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230927131242.1950-1-jamrial@gmail.com> References: <20230927131242.1950-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..e29b0ad0f9 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->side_data, + is->video_st->codecpar->nb_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".