summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioTrackPreset.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-14 19:37:49 +0000
committerritsuka <[email protected]>2015-05-14 19:37:49 +0000
commit2659b80cc0d4e078db19436f4f144b50525f2983 (patch)
tree54a8813f4a53c25e1630e6aa654c348e603f9ee8 /macosx/HBAudioTrackPreset.m
parent970688a142998ddf68cf1950436bb92e0385139c (diff)
MacGui: use libhb built-in presets and validation functions. Update the format and save the presets in UserPresets.json, the old presets are automatically imported if the new presets file is not found. The mac gui now requires 10.7 or later.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7181 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioTrackPreset.m')
-rw-r--r--macosx/HBAudioTrackPreset.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBAudioTrackPreset.m b/macosx/HBAudioTrackPreset.m
index 2e479f4fc..f3f40d813 100644
--- a/macosx/HBAudioTrackPreset.m
+++ b/macosx/HBAudioTrackPreset.m
@@ -276,7 +276,7 @@ static void *HBAudioEncoderContex = &HBAudioEncoderContex;
encodeInt(_sampleRate);
encodeInt(_bitRate);
- encodeInt(_gain);
+ encodeDouble(_gain);
encodeDouble(_drc);
encodeInt(_container);
@@ -291,7 +291,7 @@ static void *HBAudioEncoderContex = &HBAudioEncoderContex;
decodeInt(_sampleRate);
decodeInt(_bitRate);
- decodeInt(_gain);
+ decodeDouble(_gain);
decodeDouble(_drc);
decodeInt(_container);