summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorAndrew Brezovsky <[email protected]>2019-03-01 17:36:06 -0500
committerBradley Sepos <[email protected]>2019-03-01 17:57:48 -0500
commitb419da7700f6e775ff823f78a22d389f1d489d72 (patch)
tree033e7c21b8bfc9739734586a1cc0ca853c823f1a /libhb
parentc8f016b43413fd902d7073e6c6e5a54e57674974 (diff)
libhb: Only display audio source bitrates greater than one, resolves #1944
Signed-off-by: Andrew Brezovsky <[email protected]>
Diffstat (limited to 'libhb')
-rw-r--r--libhb/scan.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/libhb/scan.c b/libhb/scan.c
index f1e0de230..74a5add7b 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -1375,11 +1375,15 @@ 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);
+ // Append input bitrate in kbps to the end of the description if greater than 1
+ // ffmpeg may report some audio bitrates as 1, not an issue
+ if (audio->config.in.bitrate > 1)
+ {
+ 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,