ffprobe: add support for ICC Profile frame side data
authorJames Almer <jamrial@gmail.com>
Wed, 26 Jul 2017 03:42:51 +0000 (00:42 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 26 Jul 2017 14:31:17 +0000 (11:31 -0300)
Print the name metadata entry and the buffer size.

Reviwed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
ffprobe.c

index 3d9f795d2eda405dd87fc9cebe3abba096c6d4da..f22c4f57ade5ff99c5713015ed5a1f8a6dd529b1 100644 (file)
--- 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);
                 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);
         }
             }
             writer_print_section_footer(w);
         }