aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dump.c
diff options
context:
space:
mode:
authorSteve Lhomme <robux4@gmail.com>2017-04-02 10:08:25 +0200
committerJames Almer <jamrial@gmail.com>2017-04-06 11:40:31 -0300
commitf4cee500e9694456f008c2339c2508ef1b9573a5 (patch)
tree9c9a496c2265996218c7adbaea20ca9983d496d9 /libavformat/dump.c
parent157e57a1810c6783779b046c1817a4f9737b2cb3 (diff)
downloadffmpeg-f4cee500e9694456f008c2339c2508ef1b9573a5.tar.gz
avformat/dump : Display Content Light Level metadata
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r--libavformat/dump.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c
index ef4a6b093b..8fd58a0dba 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -343,6 +343,14 @@ static void dump_mastering_display_metadata(void *ctx, AVPacketSideData* sd) {
av_q2d(metadata->min_luminance), av_q2d(metadata->max_luminance));
}
+static void dump_content_light_metadata(void *ctx, AVPacketSideData* sd)
+{
+ AVContentLightMetadata* metadata = (AVContentLightMetadata*)sd->data;
+ av_log(ctx, AV_LOG_INFO, "Content Light Level Metadata, "
+ "MaxCLL=%d, MaxFALL=%d",
+ metadata->MaxCLL, metadata->MaxFALL);
+}
+
static void dump_spherical(void *ctx, AVCodecParameters *par, AVPacketSideData *sd)
{
AVSphericalMapping *spherical = (AVSphericalMapping *)sd->data;
@@ -426,6 +434,9 @@ static void dump_sidedata(void *ctx, AVStream *st, const char *indent)
av_log(ctx, AV_LOG_INFO, "spherical: ");
dump_spherical(ctx, st->codecpar, &sd);
break;
+ case AV_PKT_DATA_CONTENT_LIGHT_LEVEL:
+ dump_content_light_metadata(ctx, &sd);
+ break;
default:
av_log(ctx, AV_LOG_INFO,
"unknown side data type %d (%d bytes)", sd.type, sd.size);