From 124635c078f7ba70b752f91769c1b9cebc4bafaa Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 8 Jul 2024 13:22:27 -0300 Subject: [PATCH] ffprobe: print Frame Cropping packet side data info Signed-off-by: James Almer Signed-off-by: Paul B Mahol --- fftools/ffprobe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 0006ca394b..7be3698fe0 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2613,6 +2613,11 @@ static void print_pkt_side_data(WriterContext *w, if (do_show_data) writer_print_data(w, "data", sd->data, sd->size); writer_print_data_hash(w, "data_hash", sd->data, sd->size); + } else if (sd->type == AV_PKT_DATA_FRAME_CROPPING && sd->size >= sizeof(uint32_t) * 4) { + print_int("crop_top", AV_RL32(sd->data)); + print_int("crop_bottom", AV_RL32(sd->data + 4)); + print_int("crop_left", AV_RL32(sd->data + 8)); + print_int("crop_right", AV_RL32(sd->data + 12)); } else if (sd->type == AV_PKT_DATA_AFD && sd->size > 0) { print_int("active_format", *sd->data); }