You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Print bpc (for bits per component) with pixel format if it is smaller than expected.
This commit is contained in:
@@ -2059,6 +2059,10 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
|
|||||||
snprintf(buf + strlen(buf), buf_size - strlen(buf),
|
snprintf(buf + strlen(buf), buf_size - strlen(buf),
|
||||||
", %s",
|
", %s",
|
||||||
av_get_pix_fmt_name(enc->pix_fmt));
|
av_get_pix_fmt_name(enc->pix_fmt));
|
||||||
|
if (enc->bits_per_raw_sample &&
|
||||||
|
enc->bits_per_raw_sample <= av_pix_fmt_desc_get(enc->pix_fmt)->comp[0].depth_minus1)
|
||||||
|
snprintf(buf + strlen(buf), buf_size - strlen(buf),
|
||||||
|
" (%d bpc)", enc->bits_per_raw_sample);
|
||||||
}
|
}
|
||||||
if (enc->width) {
|
if (enc->width) {
|
||||||
snprintf(buf + strlen(buf), buf_size - strlen(buf),
|
snprintf(buf + strlen(buf), buf_size - strlen(buf),
|
||||||
|
Reference in New Issue
Block a user