mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
ffprobe: print Frame Cropping packet side data info
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
772c92d3a2
commit
124635c078
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user