[FFmpeg-cvslog] ffprobe: Print AVContentLightMetadata side data contents

Vittorio Giovara git at videolan.org
Thu Jun 1 22:11:19 EEST 2017


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed May 31 11:55:11 2017 -0400| [2934a10f2ed32b1b80b9e3a0a2f55489fd4067f4] | committer: Vittorio Giovara

ffprobe: Print AVContentLightMetadata side data contents

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2934a10f2ed32b1b80b9e3a0a2f55489fd4067f4
---

 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);
         }



More information about the ffmpeg-cvslog mailing list