summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-07-23 03:23:22 +0000
committerRodeo <[email protected]>2012-07-23 03:23:22 +0000
commit503082e5fe7f302dfde51304e53dd68951fcfdb9 (patch)
tree3c833d8da675b16488183c3cb21380f1e41701b9 /libhb/work.c
parentbcbaf904ba9da4a3d8ca211d208c1882799c54eb (diff)
Only log the input bitrate if it's valid; some decoders (e.g. TrueHD) set it to a dummy value of 1, resulting in:
[05:15:24] * audio track 1 [05:15:24] + decoder: English (truehd) (5.1 ch) (track 1, id 0x1) [05:15:24] + bitrate: 0 kbps, samplerate: 48000 Hz git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4870 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libhb/work.c b/libhb/work.c
index f0e128b92..ae7538dfd 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -436,7 +436,13 @@ void hb_display_job_info( hb_job_t * job )
hb_log( " + decoder: %s (track %d, id 0x%x)", audio->config.lang.description, audio->config.in.track + 1, audio->id );
- hb_log( " + bitrate: %d kbps, samplerate: %d Hz", audio->config.in.bitrate / 1000, audio->config.in.samplerate );
+ if (audio->config.in.bitrate >= 1000)
+ hb_log(" + bitrate: %d kbps, samplerate: %d Hz",
+ audio->config.in.bitrate / 1000,
+ audio->config.in.samplerate);
+ else
+ hb_log(" + samplerate: %d Hz",
+ audio->config.in.samplerate);
if( audio->config.out.codec & HB_ACODEC_PASS_FLAG )
{