summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-06-23 13:36:39 +0200
committerClément Bœsch <clement@stupeflix.com>2016-06-23 13:48:14 +0200
commitc8550e82449bb22cf78eddd8a656eaafa31cb88c (patch)
treeaf3bf9a3529a09bfca754e6d5d1b1857997d1ede /ffprobe.c
parentccf942a0c25eab26948efd9574e87bf3eec4f344 (diff)
ffprobe: print stereo3d information
Based on 8e757716c61e0563a63829e30b02d5ba2a422ad6 See https://github.com/mpv-player/mpv/issues/1045 for mk3d elektranox.org samples.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 0c4dd9c6e5..b9c3760384 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -37,6 +37,7 @@
#include "libavutil/hash.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
+#include "libavutil/stereo3d.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/libm.h"
@@ -1778,6 +1779,10 @@ static void print_pkt_side_data(WriterContext *w,
if (sd->type == AV_PKT_DATA_DISPLAYMATRIX && sd->size >= 9*4) {
writer_print_integers(w, "displaymatrix", sd->data, 9, " %11d", 3, 4, 1);
print_int("rotation", av_display_rotation_get((int32_t *)sd->data));
+ } else if (sd->type == AV_PKT_DATA_STEREO3D) {
+ const AVStereo3D *stereo = (AVStereo3D *)sd->data;
+ print_str("type", av_stereo3d_type_name(stereo->type));
+ print_int("inverted", !!(stereo->flags & AV_STEREO3D_FLAG_INVERT));
}
writer_print_section_footer(w);
}