Repository: pdeljanov/Symphonia (language: rust)

Issue:
FLAC error: end of stream
Media info:
```
Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 4 min 26 s
Bit rate mode                            : Variable
Bit rate                                 : 5 206 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 192 kHz
Bit depth                                : 24 bits
Compression mode                         : Lossless
Stream size                              : 165 MiB (100%)
Writing library                          : Lavf58.45.100
MD5 of the unencoded content             : E5C6128BFB92A8EEDDBB008159E8B13D
```
[audio file link](https://drive.google.com/file/d/1whifzCxUTKbP6UWWWbPpDQNas48wJk5Q/view?usp=sharing)


Discussion / hints:

Fix patch:
diff --git a/symphonia-bundle-flac/src/frame.rs b/symphonia-bundle-flac/src/frame.rs
index 34358ffc..b3ae5eeb 100644
--- a/symphonia-bundle-flac/src/frame.rs
+++ b/symphonia-bundle-flac/src/frame.rs
@@ -165,7 +165,7 @@ pub fn read_frame_header<B: ReadBytes>(reader: &mut B, sync: u16) -> Result<Fram
         0x9 => Some(44_100),
         0xa => Some(48_000),
         0xb => Some(96_000),
-        0xc => Some(u32::from(reader_crc8.read_u8()?)),
+        0xc => Some(u32::from(reader_crc8.read_u8()?) * 1000),
         0xd => Some(u32::from(reader_crc8.read_be_u16()?)),
         0xe => Some(u32::from(reader_crc8.read_be_u16()?) * 10),
         _ => {


Test patch: