History

avfilter/vf_showinfo: don't use sizeof(AVStereo3D)

It's not part of the libavutil ABI.

James Almer committed 2 years ago

Commit 6da38e11 parent 3478cf21 file · +1 −8Browse files

Unified · Split

libavfilter/vf_showinfo.c+1−8
@@ -108,14 +108,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSi · 107 unmodified lines
108 108
109static void dump_stereo3d(AVFilterContext *ctx, const AVFrameSideData *sd)109static void dump_stereo3d(AVFilterContext *ctx, const AVFrameSideData *sd)
110{110{
111 const AVStereo3D *stereo;111 const AVStereo3D *stereo = (const AVStereo3D *)sd->data;
112
113 if (sd->size < sizeof(*stereo)) {
114 av_log(ctx, AV_LOG_ERROR, "invalid data\n");
115 return;
116 }
117
118 stereo = (const AVStereo3D *)sd->data;
119 112
120 av_log(ctx, AV_LOG_INFO, "type - %s", av_stereo3d_type_name(stereo->type));113 av_log(ctx, AV_LOG_INFO, "type - %s", av_stereo3d_type_name(stereo->type));
121 114

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t