History

ffprobe: print Frame Cropping packet side data info

James Almer committed 2 years ago

Commit d5704571 parent 893c6801 file · +5 −0Browse files

Showing the changes to fftools (1 of 1 file). Show all

Unified · Split

fftools/ffprobe.c+5−0
@@ -2628,6 +2628,11 @@ static void print_pkt_side_data(WriterContext *w, · 2627 unmodified lines
26282628 if (do_show_data)
26292629 writer_print_data(w, "data", sd->data, sd->size);
26302630 writer_print_data_hash(w, "data_hash", sd->data, sd->size);
2631+ } else if (sd->type == AV_PKT_DATA_FRAME_CROPPING && sd->size >= sizeof(uint32_t) * 4) {
2632+ print_int("crop_top", AV_RL32(sd->data));
2633+ print_int("crop_bottom", AV_RL32(sd->data + 4));
2634+ print_int("crop_left", AV_RL32(sd->data + 8));
2635+ print_int("crop_right", AV_RL32(sd->data + 12));
26312636 } else if (sd->type == AV_PKT_DATA_AFD && sd->size > 0) {
26322637 print_int("active_format", *sd->data);
26332638 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t