react-native-compressor 1.10.4 → 1.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -258,10 +258,7 @@ class Track(id: Int, format: MediaFormat, audio: Boolean) {
258
258
  }
259
259
 
260
260
  private fun AudioSampleEntry.setup(format: MediaFormat): AudioSampleEntry = apply {
261
- channelCount =
262
- if (format.getInteger(MediaFormat.KEY_CHANNEL_COUNT) == 1) 2 else format.getInteger(
263
- MediaFormat.KEY_CHANNEL_COUNT
264
- )
261
+ channelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT)
265
262
  sampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE).toLong()
266
263
  dataReferenceIndex = 1
267
264
  sampleSize = 16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-compressor",
3
- "version": "1.10.4",
3
+ "version": "1.10.5",
4
4
  "description": "Compress Image, Video, and Audio same like Whatsapp & Auto/Manual Compression | Background Upload | Download File | Create Video Thumbnail",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",