diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-03-10 17:48:42 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-03-10 17:48:42 -0800 |
commit | b12bfa078f71c3aa3f46cc65dc2ea4a6573ada18 (patch) | |
tree | a0e6fc0c84964505e93465bb01bf5d8513974d6a /app/src | |
parent | 5b8677f6ac31ce4b52e499fa2d13c976c48d0a91 (diff) | |
download | dsub-b12bfa078f71c3aa3f46cc65dc2ea4a6573ada18.tar.gz dsub-b12bfa078f71c3aa3f46cc65dc2ea4a6573ada18.tar.bz2 dsub-b12bfa078f71c3aa3f46cc65dc2ea4a6573ada18.zip |
Fix needlessly downsampling when set to unlimited bitrate
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java index 21fe3fd5..20126f01 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadFile.java @@ -111,7 +111,7 @@ public class DownloadFile implements BufferFile { } } else if(song.getSuffix() != null && (song.getTranscodedSuffix() == 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()) { + if(song.getBitRate() != null && (br == 0 || br > song.getBitRate())) { br = song.getBitRate(); } } |