]> git.sesse.net Git - ffmpeg/commitdiff
ffprobe: support skip_samples packet side data information
authorJames Almer <jamrial@gmail.com>
Sat, 25 Mar 2017 16:50:51 +0000 (13:50 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 26 Mar 2017 01:42:57 +0000 (22:42 -0300)
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
ffprobe.c

index 4a7ec0ad3111ceda9c74cff3e247cb25f4d2ca5b..ba27bce82384e6e79c3579d9c87bea87179bf867 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1806,6 +1806,11 @@ static void print_pkt_side_data(WriterContext *w,
             print_int("yaw", (double) spherical->yaw / (1 << 16));
             print_int("pitch", (double) spherical->pitch / (1 << 16));
             print_int("roll", (double) spherical->roll / (1 << 16));
+        } else if (sd->type == AV_PKT_DATA_SKIP_SAMPLES && sd->size == 10) {
+            print_int("skip_samples",    AV_RL32(sd->data));
+            print_int("discard_padding", AV_RL32(sd->data + 4));
+            print_int("skip_reason",     AV_RL8(sd->data + 8));
+            print_int("discard_reason",  AV_RL8(sd->data + 9));
         }
         writer_print_section_footer(w);
     }