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 688A44A17D for ; Sat, 22 Jun 2024 15:32:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 702F268D61B; Sat, 22 Jun 2024 18:31:44 +0300 (EEST) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1A99968D5E0 for ; Sat, 22 Jun 2024 18:31:37 +0300 (EEST) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-70109d34a16so2587525b3a.2 for ; Sat, 22 Jun 2024 08:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719070294; x=1719675094; 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=Bp7K2SC09TsoLvHBIg6rOS/6bibk30cL37jV1NNYi7I=; b=jjtdDJMlCv0AVTnKy90ASK6B/WA/FVClMupCgj3DGa2CNEBOEb9K9owXu9jNx/LuEx G5abnNHJIFW8Yjk4sXox7hQF/JswsvJ8SKJVsrOIrbNDj1TDJfbWR+DK8wQsaTKU74Qy gb9KKBr0e8kfiRle2mf8X5XXYsSgUaFPh7KE4iwq6D9TAo//dws4dG4MC4S7qJUGGkTA 3CFJ5oMX9uDt8fLrxottpuCuHN8Ak7IrR0cT97aTUokV/VtusKhEhOmF5xS99fh7Npn4 VsP+q9ngI0ZdkPZKpxGf/kPtzEvWPEVW9Teab5zZYWNB56nDOcoqsaPrHKiX4KgvlwaO zQFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719070294; x=1719675094; 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=Bp7K2SC09TsoLvHBIg6rOS/6bibk30cL37jV1NNYi7I=; b=iWpJ5OMK605CSAkAm3OOF6iTNJOKBRaz3jfwhBuiMjBYE38HoS4DfUQn8F3WTqiFRu SqJlRIvdskrzp7bl+D8Tf1yvqrnHUtQoh/AGs8UGQFl/ypOoxUev9bXoAQIXOtSzcl8Y ArUuxsbVH4GGwCfUy3dq7yvzTdqNoGshj+LC3RqVpy36GgcoxhN2TvgHiRbPeT7TsB1w YYeYBC4K5WdW4shOnK/j/KTFvWLSY8yceaxHbWhJicDC6I60/1c8H94GcoD/BWgftc+M fJJVuA8ytVa9f5s0JVHQY/KNIkYlLMn1jsz2uLaWPhqhKMIIzvsRMd/cg8NwbL1OKSs5 mNvA== X-Gm-Message-State: AOJu0Yx+WiB6veJlXfRsYNMqlTsH5tM7dly9+zOlCZ2djHGuB4ncOb+P XZw0Uay9PBuNe+AkScCSRGlZV4xDtl7QGqG3t7R52R1za+vvs2P37zEhUg== X-Google-Smtp-Source: AGHT+IH0YSEQ04pcqB/PUYhUgqglg163GCyuQa3b5EevvvfAaew+yvYEzRR3TvB90Car5XGw2eUwsg== X-Received: by 2002:a05:6a00:2b4d:b0:706:6cb5:9720 with SMTP id d2e1a72fcca58-7067476452cmr203854b3a.34.1719070294420; Sat, 22 Jun 2024 08:31:34 -0700 (PDT) Received: from localhost.localdomain ([190.194.167.233]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7066ac98fc9sm1164709b3a.193.2024.06.22.08.31.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 08:31:33 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 22 Jun 2024 12:31:18 -0300 Message-ID: <20240622153122.6220-4-jamrial@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240622153122.6220-1-jamrial@gmail.com> References: <20240622153122.6220-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/8 v2] avformat/dump: print Stereo3D view only when type is view defined 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 --- libavformat/dump.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index 61a2c6a29f..33d72b7e18 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -259,9 +259,10 @@ static void dump_stereo3d(void *ctx, const AVPacketSideData *sd, int log_level) stereo = (const AVStereo3D *)sd->data; - av_log(ctx, log_level, "%s, view: %s, primary eye: %s", - av_stereo3d_type_name(stereo->type), av_stereo3d_view_name(stereo->view), - av_stereo3d_primary_eye_name(stereo->primary_eye)); + av_log(ctx, log_level, "%s", av_stereo3d_type_name(stereo->type)); + if (stereo->type == AV_STEREO3D_VIEW) + av_log(ctx, log_level, ", view: %s", av_stereo3d_view_name(stereo->view)); + av_log(ctx, log_level, ", primary eye: %s", av_stereo3d_primary_eye_name(stereo->primary_eye)); if (stereo->baseline) av_log(ctx, log_level, ", baseline: %"PRIu32"", stereo->baseline); if (stereo->horizontal_disparity_adjustment.num && stereo->horizontal_disparity_adjustment.den) -- 2.45.2 _______________________________________________ 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".