[FFmpeg-devel,V2,3/4] lavf/dump: More disposition flag dump

Submitted by Jun Zhao on June 28, 2019, 7:21 a.m.

Details

Message ID 1561706472-15018-4-git-send-email-mypopydev@gmail.com
State New
Headers show

Commit Message

Jun Zhao June 28, 2019, 7:21 a.m.
From: Jun Zhao <barryjzhao@tencent.com>

More disposition flag dump

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavformat/dump.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

Comments

Michael Niedermayer June 29, 2019, 4:28 p.m.
On Fri, Jun 28, 2019 at 03:21:11PM +0800, Jun Zhao wrote:
> From: Jun Zhao <barryjzhao@tencent.com>
> 
> More disposition flag dump
> 
> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
> ---
>  libavformat/dump.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)

I think this is a good idea

thx

[...]

Patch hide | download patch | download mbox

diff --git a/libavformat/dump.c b/libavformat/dump.c
index bb8c72f..1c44656 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -547,8 +547,16 @@  static void dump_stream_format(AVFormatContext *ic, int i,
         av_log(NULL, AV_LOG_INFO, " (visual impaired)");
     if (st->disposition & AV_DISPOSITION_CLEAN_EFFECTS)
         av_log(NULL, AV_LOG_INFO, " (clean effects)");
+    if (st->disposition & AV_DISPOSITION_ATTACHED_PIC)
+        av_log(NULL, AV_LOG_INFO, " (attached pic)");
+    if (st->disposition & AV_DISPOSITION_TIMED_THUMBNAILS)
+        av_log(NULL, AV_LOG_INFO, " (timed thumbnails)");
+    if (st->disposition & AV_DISPOSITION_CAPTIONS)
+        av_log(NULL, AV_LOG_INFO, " (captions)");
     if (st->disposition & AV_DISPOSITION_DESCRIPTIONS)
         av_log(NULL, AV_LOG_INFO, " (descriptions)");
+    if (st->disposition & AV_DISPOSITION_METADATA)
+        av_log(NULL, AV_LOG_INFO, " (metadata)");
     if (st->disposition & AV_DISPOSITION_DEPENDENT)
         av_log(NULL, AV_LOG_INFO, " (dependent)");
     if (st->disposition & AV_DISPOSITION_STILL_IMAGE)