mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-01-07 03:40:28 +00:00
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>
This commit is contained in:
parent
4cebf0fc45
commit
5e4e9afaa1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user