summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-17 22:49:26 +0200
committerwm4 <wm4@nowhere>2019-10-17 22:49:26 +0200
commit60ab82df322bd91fd1c999dfaa3dd1784617734b (patch)
tree6d485985218e2728dc09105e2d9aef391cca5a15 /demux/demux_lavf.c
parentc75e0320f60f93f0db40c949320fd9cee27cb52e (diff)
downloadmpv-60ab82df322bd91fd1c999dfaa3dd1784617734b.tar.bz2
mpv-60ab82df322bd91fd1c999dfaa3dd1784617734b.tar.xz
video, demux: rip out unused spherical metadata code
This was preparation into something that never happened. Spherical video is a shit idea anyway.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r--demux/demux_lavf.c12
1 files changed, 0 insertions, 12 deletions
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 <libavutil/avstring.h>
#include <libavutil/mathematics.h>
#include <libavutil/replaygain.h>
-#include <libavutil/spherical.h>
#include <libavutil/display.h>
#include <libavutil/opt.h>
@@ -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");