[FFmpeg-cvslog] ffprobe: print Frame Cropping packet side data info
James Almer
git at videolan.org
Mon Jul 8 19:31:01 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Jul 8 13:22:27 2024 -0300| [d570457eb73fa7221e7aaa7d7ee74faf8f040224] | committer: James Almer
ffprobe: print Frame Cropping packet side data info
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d570457eb73fa7221e7aaa7d7ee74faf8f040224
---
fftools/ffprobe.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 71d1ffc21f..0b7d4ce0d7 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -2628,6 +2628,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);
}
More information about the ffmpeg-cvslog
mailing list