From 60ab82df322bd91fd1c999dfaa3dd1784617734b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Oct 2019 22:49:26 +0200 Subject: video, demux: rip out unused spherical metadata code This was preparation into something that never happened. Spherical video is a shit idea anyway. --- demux/demux_lavf.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'demux/demux_lavf.c') diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 281259a15e..c7eeb0b13e 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include @@ -702,17 +701,6 @@ static void handle_new_stream(demuxer_t *demuxer, int i) sh->codec->rotate = (((int)(-r) % 360) + 360) % 360; } - sd = av_stream_get_side_data(st, AV_PKT_DATA_SPHERICAL, NULL); - if (sd) { - AVSphericalMapping *sp = (void *)sd; - struct mp_spherical_params *mpsp = &sh->codec->spherical; - mpsp->type = sp->projection == AV_SPHERICAL_EQUIRECTANGULAR ? - MP_SPHERICAL_EQUIRECTANGULAR : MP_SPHERICAL_UNKNOWN; - mpsp->ref_angles[0] = sp->yaw / (float)(1 << 16); - mpsp->ref_angles[1] = sp->pitch / (float)(1 << 16); - mpsp->ref_angles[2] = sp->roll / (float)(1 << 16); - } - // This also applies to vfw-muxed mkv, but we can't detect these easily. sh->codec->avi_dts = matches_avinputformat_name(priv, "avi"); -- cgit v1.2.3