aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-03 00:39:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-03 00:39:47 +0200
commit08152f2df2c894dea22960572fe0bd9157cb52a4 (patch)
treebddc00b6d5c26f9c8e12f50b4adce341bba3f92b
parent2a3270b66c3ce118e4a30afda5f9522bdc8906fd (diff)
downloadffmpeg-08152f2df2c894dea22960572fe0bd9157cb52a4.tar.gz
ffprobe: Add Support to print information about AV_FRAME_DATA_DISPLAYMATRIX
Idea from 709e1c91ea7a5bbf2b9a104642572ca7616b224f by Martin Storsjö Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffprobe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 3d15d66f05..f03ca8fb2a 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -33,6 +33,7 @@
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
+#include "libavutil/display.h"
#include "libavutil/hash.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
@@ -1860,6 +1861,11 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
name = av_frame_side_data_name(sd->type);
print_str("side_data_type", name ? name : "unknown");
print_int("side_data_size", sd->size);
+ if (sd->type == AV_FRAME_DATA_DISPLAYMATRIX && sd->size >= 9*4) {
+ abort();
+ writer_print_integers(w, "displaymatrix", sd->data, 9, " %11d", 3, 4, 1);
+ print_int("rotation", av_display_rotation_get((int32_t *)sd->data));
+ }
writer_print_section_footer(w);
}
writer_print_section_footer(w);