diff options
author | Rodeo <[email protected]> | 2014-01-25 23:24:48 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2014-01-25 23:24:48 +0000 |
commit | d7ad9c9682d83dc8f59bd6ff86d3ec422c1f6adb (patch) | |
tree | 2dffccb32b266858c1d52f3d63463e83c049937a /macosx/HBAudio.m | |
parent | ebf885ce8a75dd392e2acab9a8a0e29032e05f71 (diff) |
decavcodec: DRC support.
Adds DRC support for E-AC-3 audio (as well as any future libavcodec decoders with DRC support).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5995 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudio.m')
-rw-r--r-- | macosx/HBAudio.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/macosx/HBAudio.m b/macosx/HBAudio.m index 514096cf6..91e18f9d8 100644 --- a/macosx/HBAudio.m +++ b/macosx/HBAudio.m @@ -564,16 +564,17 @@ static NSMutableArray *masterBitRateArray = nil; return retval; } -- (BOOL) AC3Enabled +- (BOOL) DRCEnabled { BOOL retval = [self enabled]; if (retval) { + int myTrackParam = [[[self track] objectForKey: keyAudioInputCodecParam] intValue]; int myTrackCodec = [[[self track] objectForKey: keyAudioInputCodec] intValue]; int myCodecCodec = [[[self codec] objectForKey: keyAudioCodec] intValue]; - if (HB_ACODEC_AC3 != myTrackCodec || HB_ACODEC_AC3_PASS == myCodecCodec) + if (!hb_audio_can_apply_drc(myTrackCodec, myTrackParam, myCodecCodec)) { retval = NO; } @@ -610,7 +611,7 @@ static NSMutableArray *masterBitRateArray = nil; { retval = [NSSet setWithObjects: @"track", @"codec", nil]; } - else if ([key isEqualToString: @"AC3Enabled"]) + else if ([key isEqualToString: @"DRCEnabled"]) { retval = [NSSet setWithObjects: @"track", @"codec", nil]; } |