diff options
author | Andrew Brezovsky <[email protected]> | 2019-02-06 23:47:24 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2019-02-08 17:35:16 -0500 |
commit | 8a111ad881c006ed8eec6b9f4b4f00f5c3659b8b (patch) | |
tree | 329c9fca2166ba2855c64237d3d3dcad617ebad5 /libhb/scan.c | |
parent | 5c52e252def1d72d072adc4cfdb2137a35705186 (diff) |
libhb: Append input bitrate to end of audio source description. Closes #1718.
Signed-off-by: Andrew Brezovsky <[email protected]>
Diffstat (limited to 'libhb/scan.c')
-rw-r--r-- | libhb/scan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index b034acc88..5d97b27d1 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -1376,6 +1376,12 @@ static void LookForAudio(hb_scan_t *scan, hb_title_t * title, hb_buffer_t * b) } } + // Append input bitrate in kbps to the end of the description + char in_bitrate_str[19]; + snprintf(in_bitrate_str, 18, " (%d kbps)", audio->config.in.bitrate / 1000); + strncat(audio->config.lang.description, in_bitrate_str, + sizeof(audio->config.lang.description) - strlen(audio->config.lang.description) - 1); + hb_log( "scan: audio 0x%x: %s, rate=%dHz, bitrate=%d %s", audio->id, info.name, audio->config.in.samplerate, audio->config.in.bitrate, audio->config.lang.description ); |