mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-08 10:27:08 +02:00
getTranscodeDecision was copying the source file's bit depth into the transcodeStream details, so a 24-bit FLAC negotiated to Opus reported audioBitdepth=24. Lossy codecs (Opus, MP3, AAC) have no PCM bit depth, and ffmpeg only honors a bit depth constraint (-sample_fmt) for lossless outputs, so the value was both meaningless and misleading to clients that use it as a quality indicator. Only set the transcoded stream's bit depth when the target format is lossless; a zero value omits audioBitdepth from the response. This also makes audioBitdepth codec limitations a no-op for lossy targets instead of rejecting the profile. Lossless targets (e.g. FLAC->FLAC downconvert) keep reporting and clamping bit depth as before. |
||
|---|---|---|
| .. | ||
| aliases.go | ||
| aliases_test.go | ||
| codec.go | ||
| codec_test.go | ||
| decider.go | ||
| decider_test.go | ||
| legacy_client.go | ||
| legacy_client_test.go | ||
| limitations.go | ||
| limiter.go | ||
| limiter_test.go | ||
| media_streamer.go | ||
| media_streamer_test.go | ||
| stream_suite_test.go | ||
| token.go | ||
| token_test.go | ||
| types.go | ||
| types_test.go | ||