History

ffprobe: Use pixdesc API to provide color space names

This API is more up-to-date, provides names compatible with filters and external encoders, and is consistent with the other color property variables.

Vittorio Giovara committed 9 years ago

Commit 2ef9fc91 parent 7fc1be91 file · +4 −3Browse files

Unified · Split

ffprobe.c+4−3
@@ -2474,9 +2474,10 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id · 2473 unmodified lines
2474 else2474 else
2475 print_str_opt("color_range", "N/A");2475 print_str_opt("color_range", "N/A");
2476 2476
2477 s = av_get_colorspace_name(par->color_space);2477 if (par->color_space != AVCOL_SPC_UNSPECIFIED)
2478 if (s) print_str ("color_space", s);2478 print_str("color_space", av_color_space_name(par->color_space));
2479 else print_str_opt("color_space", "unknown");2479 else
2480 print_str_opt("color_space", av_color_space_name(par->color_space));
2480 2481
2481 if (par->color_trc != AVCOL_TRC_UNSPECIFIED)2482 if (par->color_trc != AVCOL_TRC_UNSPECIFIED)
2482 print_str("color_transfer", av_color_transfer_name(par->color_trc));2483 print_str("color_transfer", av_color_transfer_name(par->color_trc));

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