[FFmpeg-cvslog] avfilter/vf_showinfo: don't use sizeof(AVSphericalMapping)
James Almer
git at videolan.org
Fri Jun 28 20:44:28 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Jun 26 11:08:53 2024 -0300| [0cb733d276477185d2983005851e92c0bf9946e0] | committer: James Almer
avfilter/vf_showinfo: don't use sizeof(AVSphericalMapping)
It's not part of the libavutil ABI.
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0cb733d276477185d2983005851e92c0bf9946e0
---
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) {
More information about the ffmpeg-cvslog
mailing list