[FFmpeg-devel] [PATCH] ffprobe: print some basic information about avframe side data

Michael Niedermayer michaelni at gmx.at
Mon Jun 30 04:16:17 CEST 2014


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffprobe.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ffprobe.c b/ffprobe.c
index 1329466..e96f51f 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1722,6 +1722,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
 {
     AVBPrint pbuf;
     const char *s;
+    int i;
 
     av_bprint_init(&pbuf, 1, AV_BPRINT_SIZE_UNLIMITED);
 
@@ -1765,6 +1766,11 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
         print_int("interlaced_frame",       frame->interlaced_frame);
         print_int("top_field_first",        frame->top_field_first);
         print_int("repeat_pict",            frame->repeat_pict);
+        for (i = 0; i < frame->nb_side_data; i++) {
+            AVFrameSideData *sd = frame->side_data[i];
+            print_int("side_data_type", sd->type);
+            print_int("side_data_size", sd->size);
+        }
         break;
 
     case AVMEDIA_TYPE_AUDIO:
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list