1
0

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:
James Almer 2024-06-26 11:08:53 -03:00
parent beacdbf4b4
commit 0cb733d276

View File

@ -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) {