[FFmpeg-devel] [PATCH 2/2] ffprobe: Print AVContentLightMetadata side data contents
Vittorio Giovara
vittorio.giovara at gmail.com
Wed May 31 18:59:00 EEST 2017
---
ffprobe.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ffprobe.c b/ffprobe.c
index f6d0264334..b3464aac8f 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1913,6 +1913,10 @@ static void print_pkt_side_data(WriterContext *w,
print_q("min_luminance", metadata->min_luminance, '/');
print_q("max_luminance", metadata->max_luminance, '/');
}
+ } else if (sd->type == AV_PKT_DATA_CONTENT_LIGHT_LEVEL) {
+ AVContentLightMetadata *metadata = (AVContentLightMetadata *)sd->data;
+ print_int("max_content", metadata->MaxCLL);
+ print_int("max_average", metadata->MaxFALL);
}
writer_print_section_footer(w);
}
@@ -2155,6 +2159,10 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
print_q("min_luminance", metadata->min_luminance, '/');
print_q("max_luminance", metadata->max_luminance, '/');
}
+ } else if (sd->type == AV_FRAME_DATA_CONTENT_LIGHT_LEVEL) {
+ AVContentLightMetadata *metadata = (AVContentLightMetadata *)sd->data;
+ print_int("max_content", metadata->MaxCLL);
+ print_int("max_average", metadata->MaxFALL);
}
writer_print_section_footer(w);
}
--
2.12.0
More information about the ffmpeg-devel
mailing list