[FFmpeg-cvslog] ffprobe: add support for ICC Profile frame side data
James Almer
git at videolan.org
Wed Jul 26 17:34:07 EEST 2017
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Jul 26 00:42:51 2017 -0300| [5e4e9afaa127acbfa9ac445a8572b49dadb68b17] | committer: James Almer
ffprobe: add support for ICC Profile frame side data
Print the name metadata entry and the buffer size.
Reviwed-by: Rostislav Pehlivanov <atomnuker at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e4e9afaa127acbfa9ac445a8572b49dadb68b17
---
ffprobe.c | 5 +++++
1 file changed, 5 insertions(+)
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);
}
More information about the ffmpeg-cvslog
mailing list