diff options
author | Rodeo <[email protected]> | 2012-05-27 13:38:41 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-05-27 13:38:41 +0000 |
commit | f2ffde5fff6540a84bca511a67ad7468c25aab81 (patch) | |
tree | 1026ba45c33da4d752b50fa9a11d4eff4269e46a /libhb/stream.c | |
parent | c906e05b28bae440471dd2a816627b9852eed3e8 (diff) |
decdca: attempt to fix Dolby Surround and Pro Logic II mixdown. We were doing it wrong in some cases.
This means Dolby Pro Logic II is now only available for sources with at least L, R, C, Ls, Rs channels (as well as any additional channels), due to some libdca limitations. This will eventually go away when we use our own downmixing for all sources.
Further cleanup to follow.
Also cleans up usage of audio->config.in.flags (was audio->config.flags.*).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4705 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/stream.c')
-rw-r--r-- | libhb/stream.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index eb2a42e6f..26de66ee5 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -2039,7 +2039,11 @@ static void set_audio_description( sizeof( audio->config.lang.description ), "%s (%s)", audio->config.lang.simple, codec_name ); - if ( audio->config.in.channel_layout ) + if( audio->config.in.channel_layout == HB_INPUT_CH_LAYOUT_DOLBY ) + { + strcat( audio->config.lang.description, " (Dolby Surround)" ); + } + else if( audio->config.in.channel_layout ) { int layout = audio->config.in.channel_layout; char *desc = audio->config.lang.description + |