summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodecaudio.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-10-15 21:46:25 +0000
committerjstebbins <[email protected]>2011-10-15 21:46:25 +0000
commiteece3bf91264e644d1a177fa020786df4634719f (patch)
treed8d658275ca91cbe164a48f24c7d838a081e00af /libhb/encavcodecaudio.c
parent0646bd60a8f672a003195e1c83ebbcb08d05aa99 (diff)
set ac3 dolby flag when downmix is dolby
If doing dolby or dplii downmix and encoding to ac3, set the dolby flag in output ac3 stream so players (and handbrake) will know that the stream is dolby matrix encoded. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4292 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encavcodecaudio.c')
-rw-r--r--libhb/encavcodecaudio.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c
index 6645d22dc..d1af516da 100644
--- a/libhb/encavcodecaudio.c
+++ b/libhb/encavcodecaudio.c
@@ -63,6 +63,14 @@ static int encavcodecaInit( hb_work_object_t * w, hb_job_t * job )
{
av_dict_set( &av_opts, "stereo_mode", "ms_off", 0 );
}
+ if ( w->codec_param == CODEC_ID_AC3 )
+ {
+ if( audio->config.out.mixdown == HB_AMIXDOWN_DOLBY ||
+ audio->config.out.mixdown == HB_AMIXDOWN_DOLBYPLII )
+ {
+ av_dict_set( &av_opts, "dsur_mode", "on", 0 );
+ }
+ }
context->channel_layout = AV_CH_LAYOUT_STEREO;
switch( audio->config.out.mixdown )