aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-07-26 00:42:51 -0300
committerJames Almer <jamrial@gmail.com>2017-07-26 11:31:17 -0300
commit5e4e9afaa127acbfa9ac445a8572b49dadb68b17 (patch)
tree0dbbaca96c678bae500119d5ec4f07a32954b877
parent4cebf0fc456ceb4f8c4f328b2fe849bd7e8a1c4a (diff)
downloadffmpeg-5e4e9afaa127acbfa9ac445a8572b49dadb68b17.tar.gz
ffprobe: add support for ICC Profile frame side data
Print the name metadata entry and the buffer size. Reviwed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--ffprobe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 3d9f795d2e..f22c4f57ad 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2190,6 +2190,11 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
AVContentLightMetadata *metadata = (AVContentLightMetadata *)sd->data;
print_int("max_content", metadata->MaxCLL);
print_int("max_average", metadata->MaxFALL);
+ } else if (sd->type == AV_FRAME_DATA_ICC_PROFILE) {
+ AVDictionaryEntry *tag = av_dict_get(sd->metadata, "name", NULL, AV_DICT_MATCH_CASE);
+ if (tag)
+ print_str(tag->key, tag->value);
+ print_int("size", sd->size);
}
writer_print_section_footer(w);
}