Idea from 709e1c91ea7a5bbf2b9a104642572ca7616b224f by Martin Storsjö
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -33,6 +33,7 @@ |
33 | 33 |
#include "libavutil/avassert.h" |
34 | 34 |
#include "libavutil/avstring.h" |
35 | 35 |
#include "libavutil/bprint.h" |
36 |
+#include "libavutil/display.h" |
|
36 | 37 |
#include "libavutil/hash.h" |
37 | 38 |
#include "libavutil/opt.h" |
38 | 39 |
#include "libavutil/pixdesc.h" |
... | ... |
@@ -1860,6 +1861,11 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream, |
1860 | 1860 |
name = av_frame_side_data_name(sd->type); |
1861 | 1861 |
print_str("side_data_type", name ? name : "unknown"); |
1862 | 1862 |
print_int("side_data_size", sd->size); |
1863 |
+ if (sd->type == AV_FRAME_DATA_DISPLAYMATRIX && sd->size >= 9*4) { |
|
1864 |
+ abort(); |
|
1865 |
+ writer_print_integers(w, "displaymatrix", sd->data, 9, " %11d", 3, 4, 1); |
|
1866 |
+ print_int("rotation", av_display_rotation_get((int32_t *)sd->data)); |
|
1867 |
+ } |
|
1863 | 1868 |
writer_print_section_footer(w); |
1864 | 1869 |
} |
1865 | 1870 |
writer_print_section_footer(w); |