<feed xmlns='http://www.w3.org/2005/Atom'>
<title>jellyfin/tests/Jellyfin.Controller.Tests, branch v12.0-rc5</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.lodewillems.com/jellyfin/atom?h=v12.0-rc5</id>
<link rel='self' href='https://git.lodewillems.com/jellyfin/atom?h=v12.0-rc5'/>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/'/>
<updated>2026-08-07T15:33:37Z</updated>
<entry>
<title>Stop image endpoints from upscaling beyond the source resolution</title>
<updated>2026-08-07T15:33:37Z</updated>
<author>
<name>vavallee</name>
<email>vavallee@protonmail.com</email>
</author>
<published>2026-08-07T15:33:37Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=e120b7f2dd986d7f07f6814b6d987bafd46baab8'/>
<id>urn:sha1:e120b7f2dd986d7f07f6814b6d987bafd46baab8</id>
<content type='text'>
ImageHelper.GetNewImageSize passed the caller-supplied width/height straight
through to SkiaEncoder.EncodeImage, which allocates an SKImageInfo of exactly
that size. Nothing bounded those values against the source image, so a request
like Items/&lt;id&gt;/Images/Primary?width=23100&amp;height=23100 made the server allocate
and resample a 23100x23100 surface from, say, a 600x336 poster: the reporter
measured 100% of a core for 10-15 minutes and 6-12 GB resident per request.
The item images endpoints do not require authentication, so any caller who knows
an item id can trigger this, and varying the size by one pixel misses the cache
every time.

Add DrawingUtils.ScaleDownToFit, which scales a size down uniformly until it
fits inside a bounding box and returns it unchanged if it already does, and
apply it in GetNewImageSize against the original image dimensions. Requests
that ask for more pixels than the source now get the source resolution back,
scaled to the requested aspect ratio. Downscaling paths are untouched, and
DrawingUtils.Resize keeps its existing behaviour for the transcoding callers in
EncodingJobInfo and StreamInfo, which legitimately size video output.
ResizeFill already refused to upscale; this makes width/height consistent
with fillWidth/fillHeight.

Fixes #17056.
</content>
</entry>
<entry>
<title>Merge pull request #17537 from vdatanet/fix/pcm-wav-transcode</title>
<updated>2026-08-05T22:39:42Z</updated>
<author>
<name>Cody Robibero</name>
<email>cody@robibe.ro</email>
</author>
<published>2026-08-05T22:39:42Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=d5a5b56484103e20bf36c558439048aa8f85c259'/>
<id>urn:sha1:d5a5b56484103e20bf36c558439048aa8f85c259</id>
<content type='text'>
Fix PCM audio transcoding to wav returning HTTP 500 and headerless output</content>
</entry>
<entry>
<title>Fix PCM audio transcoding to wav returning HTTP 500 and headerless output</title>
<updated>2026-08-04T17:52:29Z</updated>
<author>
<name>vdatanet</name>
<email>joan@vdata.net</email>
</author>
<published>2026-08-04T17:52:29Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=3578e9a332c64d1aeef6be5e4f2c1a8d271169a8'/>
<id>urn:sha1:3578e9a332c64d1aeef6be5e4f2c1a8d271169a8</id>
<content type='text'>
`GetProgressiveAudioFullCommandLine` forced the raw PCM muxer and a bogus
sample rate whenever the audio encoder was `pcm_*`, regardless of the
container the client asked for. Two separate failures came out of it:

- `-ar ` + `state.BaseRequest.AudioBitRate` used a *bitrate* as a *sample
  rate*, and `AudioBitRate` is optional. When it is absent the argument
  degrades to a bare `-ar`, ffmpeg aborts with `Expected number for ar but
  found: -ar` / `Error opening output files: Invalid argument` (exit 234)
  and the request fails with HTTP 500. Every `GET /Audio/{id}/stream.wav`
  that does not carry an explicit `AudioBitRate` hits this.
  The sample rate was already being set correctly a few lines below from
  `OutputAudioSampleRate`, so the line is dropped rather than repaired.

- `-f s16le` overrode the muxer even for a real container. A request that
  did supply a bitrate (`/Audio/{id}/universal` passes
  `MaxStreamingBitrate`) survived the first bug but produced raw headerless
  samples served under an `audio/wav` content type, so clients saw a body
  with no RIFF header. The raw muxer is now only forced when the requested
  container is actually raw PCM, which keeps the I2S/MCU route from #10321
  working.

Also drop the `containerInternal = ".pcm"` assignment in
`StreamingHelpers.GetStreamingState`: it is written after
`state.OutputContainer` has already been read from the same variable and is
never read again, so it has no effect and only obscures where the output
container comes from.

Verified against ffmpeg 8.1.2 with a 96 kHz FLAC source: before, the wav
command line exits 234; after, it produces a valid `RIFF/WAVE` 48 kHz stereo
`pcm_s16le` file, while the raw `.pcm` route still yields exactly
2 s x 48000 x 2ch x 2 B = 384000 bytes of headerless samples.
</content>
</entry>
<entry>
<title>Fix test</title>
<updated>2026-08-03T13:29:32Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-08-03T13:29:32Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=f502fd312e5f807264c4e18a216d5309cd5a7015'/>
<id>urn:sha1:f502fd312e5f807264c4e18a216d5309cd5a7015</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Keep folder extras with the item that owns the folder</title>
<updated>2026-08-03T08:50:33Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-08-03T08:50:33Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=4e2089b6a18c323c6c3d158aeba87098ff400450'/>
<id>urn:sha1:4e2089b6a18c323c6c3d158aeba87098ff400450</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix extras naming and version assignment</title>
<updated>2026-07-27T10:12:17Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-07-27T09:48:15Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=79a55327dcb3899fb85147f7ec6b19cd71e5dcfb'/>
<id>urn:sha1:79a55327dcb3899fb85147f7ec6b19cd71e5dcfb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #17399 from Shadowghost/fix-extra-year</title>
<updated>2026-07-25T16:52:51Z</updated>
<author>
<name>Cody Robibero</name>
<email>cody@robibe.ro</email>
</author>
<published>2026-07-25T16:52:51Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=7f26bd109171041f9e27a51f7cd3969fb2e8546d'/>
<id>urn:sha1:7f26bd109171041f9e27a51f7cd3969fb2e8546d</id>
<content type='text'>
Fix incorrect year on local trailers</content>
</entry>
<entry>
<title>Always inherit from owner item and add tests</title>
<updated>2026-07-25T15:17:30Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-07-25T15:17:30Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=3c9727d36cdf6749106ad398835484810d0c6a22'/>
<id>urn:sha1:3c9727d36cdf6749106ad398835484810d0c6a22</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply cleaning logic on ForcedSortName</title>
<updated>2026-07-22T06:30:29Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-07-22T06:30:29Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=929e1936eb4be924c15f8724ac4a988b4cf25f0c'/>
<id>urn:sha1:929e1936eb4be924c15f8724ac4a988b4cf25f0c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Sanitize ClientLog upload filename to prevent path traversal</title>
<updated>2026-07-17T15:02:02Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-07-17T14:32:40Z</published>
<link rel='alternate' type='text/html' href='https://git.lodewillems.com/jellyfin/commit/?id=4fb779920afdcf566f0d50b25ab34b0910fcb570'/>
<id>urn:sha1:4fb779920afdcf566f0d50b25ab34b0910fcb570</id>
<content type='text'>
</content>
</entry>
</feed>
