diff options
author | daneren2005 <daneren2005@gmail.com> | 2014-06-03 10:55:45 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2014-06-03 10:55:45 -0700 |
commit | 2e691a00dc7ca4fdb3eca6b8d1675c7eb97f705a (patch) | |
tree | 15703ae41c0be15a75304b97dd561a719321db09 /src | |
parent | 82bbd95691901477bb4ea38df652f06d251b7c28 (diff) | |
download | dsub-2e691a00dc7ca4fdb3eca6b8d1675c7eb97f705a.tar.gz dsub-2e691a00dc7ca4fdb3eca6b8d1675c7eb97f705a.tar.bz2 dsub-2e691a00dc7ca4fdb3eca6b8d1675c7eb97f705a.zip |
Stop from upsampling (ie: 128 kpbs -> 192 kpbs)
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadFile.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadFile.java b/src/github/daneren2005/dsub/service/DownloadFile.java index 1f962707..6e1efcf6 100644 --- a/src/github/daneren2005/dsub/service/DownloadFile.java +++ b/src/github/daneren2005/dsub/service/DownloadFile.java @@ -106,6 +106,11 @@ public class DownloadFile implements BufferFile { } else { br = 320; } + } else if(song.getSuffix() != null && song.getSuffix().equals(song.getTranscodedSuffix()) { + // If just downsampling, don't try to upsample (ie: 128 kpbs -> 192 kpbs) + if(song.getBitRate() != null && br > song.getBitRate()) { + br = song.getBitRate(); + } } return br; |