Message ID | 20240626141014.6442-2-jamrial@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/5] avfilter/vf_showinfo: print more Stereo 3D fields | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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));
It's not part of the libavutil ABI. Signed-off-by: James Almer <jamrial@gmail.com> --- libavfilter/vf_showinfo.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)