mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
Print the actual bit depth for audio if it is different from the sample_fmt bit depth.
This is already done for video.
This commit is contained in:
parent
5a6dd925cb
commit
2b1f6a3516
@ -2978,6 +2978,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", av_get_sample_fmt_name(enc->sample_fmt));
|
", %s", av_get_sample_fmt_name(enc->sample_fmt));
|
||||||
}
|
}
|
||||||
|
if ( enc->bits_per_raw_sample > 0
|
||||||
|
&& enc->bits_per_raw_sample != av_get_bytes_per_sample(enc->sample_fmt) * 8)
|
||||||
|
snprintf(buf + strlen(buf), buf_size - strlen(buf),
|
||||||
|
" (%d bit)", enc->bits_per_raw_sample);
|
||||||
break;
|
break;
|
||||||
case AVMEDIA_TYPE_DATA:
|
case AVMEDIA_TYPE_DATA:
|
||||||
if (av_log_get_level() >= AV_LOG_DEBUG) {
|
if (av_log_get_level() >= AV_LOG_DEBUG) {
|
||||||
|
Loading…
Reference in New Issue
Block a user