aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-06-26 11:01:23 -0300
committerJames Almer <jamrial@gmail.com>2024-06-28 12:57:49 -0300
commit6da38e11f6a7e7a73d051b7b71abc41199415fcd (patch)
tree666da231b643da64451a7a44753ba5e0d88d7818
parent3478cf2c2dbd414ddcc7eee9f1ac7db928908c06 (diff)
downloadffmpeg-6da38e11f6a7e7a73d051b7b71abc41199415fcd.tar.gz
avfilter/vf_showinfo: don't use sizeof(AVStereo3D)
It's not part of the libavutil ABI. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavfilter/vf_showinfo.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 9790c202f5..fdcf9210e7 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -108,14 +108,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSi
static void dump_stereo3d(AVFilterContext *ctx, const AVFrameSideData *sd)
{
- const AVStereo3D *stereo;
-
- if (sd->size < sizeof(*stereo)) {
- av_log(ctx, AV_LOG_ERROR, "invalid data\n");
- return;
- }
-
- stereo = (const AVStereo3D *)sd->data;
+ const AVStereo3D *stereo = (const AVStereo3D *)sd->data;
av_log(ctx, AV_LOG_INFO, "type - %s", av_stereo3d_type_name(stereo->type));