avfilter/vf_showinfo: don't use sizeof(AVSphericalMapping)
It's not part of the libavutil ABI. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
beacdbf4b4
commit
0cb733d276
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user