mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avfilter/vf_showinfo: don't use sizeof(AVStereo3D)
It's not part of the libavutil ABI. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
3478cf2c2d
commit
6da38e11f6
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user