diff options
author | James Almer <jamrial@gmail.com> | 2017-07-26 00:42:51 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-07-26 11:31:17 -0300 |
commit | 5e4e9afaa127acbfa9ac445a8572b49dadb68b17 (patch) | |
tree | 0dbbaca96c678bae500119d5ec4f07a32954b877 | |
parent | 4cebf0fc456ceb4f8c4f328b2fe849bd7e8a1c4a (diff) | |
download | ffmpeg-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); } |