summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-02-01 00:09:17 +0000
committerRodeo <[email protected]>2012-02-01 00:09:17 +0000
commit29b5e839a306b41279935fa13a41aee9d256c7a0 (patch)
tree23f2ede6881acb26deb965cd8ee1593f295f5d94 /libhb/hb.c
parent446af21bdb70552095e0fd00770c1476f508fdb6 (diff)
Use more correct check to detect 6.0/6.1 input.
The old check didn't cause any issues in practice, but wasn't 100% correct. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4429 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 90e6916ff..31456784f 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -306,7 +306,7 @@ void hb_ff_set_sample_fmt(AVCodecContext *context, AVCodec *codec)
int hb_ff_dts_disable_xch( AVCodecContext *c )
{
if( ( c->codec_id == CODEC_ID_DTS ) &&
- ( c->channel_layout & ( AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER ) ) )
+ ( ( c->channel_layout & ~AV_CH_LOW_FREQUENCY ) == ( AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER ) ) )
{
c->request_channels = --c->channels;
c->channel_layout &= ~AV_CH_BACK_CENTER;