Commit d1da3d92 by kimvde Committed by Oliver Woodman

Fix FLAC bit rate computation

PiperOrigin-RevId: 279088193
parent a226bd0d
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/raw
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/raw
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/raw
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/raw
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/raw
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/raw
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/raw
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/raw
......
......@@ -109,7 +109,7 @@ public final class FlacStreamMetadata {
/** Returns the bit-rate of the FLAC stream. */
public int bitRate() {
return bitsPerSample * sampleRate;
return bitsPerSample * sampleRate * channels;
}
/** Returns the duration of the FLAC stream in microseconds. */
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
......@@ -5,7 +5,7 @@ seekMap:
numberOfTracks = 1
track 0:
format:
bitrate = 768000
bitrate = 1536000
id = null
containerMimeType = null
sampleMimeType = audio/flac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment