[FFmpeg-devel] [PATCH v2 3/3] ffprobe: add support for logging gamma side data
Rostislav Pehlivanov
atomnuker at gmail.com
Mon Sep 25 22:28:09 EEST 2017
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
---
ffprobe.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ffprobe.c b/ffprobe.c
index b2e8949d9f..171f856c2d 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2227,6 +2227,9 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
if (tag)
print_str(tag->key, tag->value);
print_int("size", sd->size);
+ } else if (sd->type == AV_FRAME_DATA_GAMMA) {
+ AVRational *gamma = (AVRational *)sd->data;
+ print_q("gamma", *gamma, '/');
}
writer_print_section_footer(w);
}
--
2.14.1.821.g8fa685d3b7
More information about the ffmpeg-devel
mailing list