[FFmpeg-devel] [PATCH 5/5] avfilter/vf_showinfo: don't use sizeof(AVSphericalMapping)
James Almer
jamrial at gmail.com
Wed Jun 26 17:10:14 EEST 2024
It's not part of the libavutil ABI.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavfilter/vf_showinfo.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 72b91329d2..c21dc0a10b 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) {
--
2.45.2
More information about the ffmpeg-devel
mailing list