From 0cb733d276477185d2983005851e92c0bf9946e0 Mon Sep 17 00:00:00 2001 From: James Almer Date: Wed, 26 Jun 2024 11:08:53 -0300 Subject: [PATCH] avfilter/vf_showinfo: don't use sizeof(AVSphericalMapping) It's not part of the libavutil ABI. Signed-off-by: James Almer --- libavfilter/vf_showinfo.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index bcf7c2159e..d79707ce49 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -73,11 +73,6 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSi const AVSphericalMapping *spherical = (const AVSphericalMapping *)sd->data; double yaw, pitch, roll; - if (sd->size < sizeof(*spherical)) { - av_log(ctx, AV_LOG_ERROR, "invalid data\n"); - return; - } - av_log(ctx, AV_LOG_INFO, "%s ", av_spherical_projection_name(spherical->projection)); if (spherical->yaw || spherical->pitch || spherical->roll) {