This API is more up-to-date, provides names compatible with filters and external encoders, and is consistent with the other color property variables.
Unified · Split
| @@ -2474,9 +2474,10 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id · 2473 unmodified lines | |||
| 2474 | else | 2474 | 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)); |