Skip to content

Commit

Permalink
Fix missing transcoding speed info (jellyfin#6199)
Browse files Browse the repository at this point in the history
* Fix missing transcoding speed info jellyfin#6198

* Use ReferenceFrameRate by default

---------

Co-authored-by: Bill Thornton <[email protected]>
  • Loading branch information
marissa999 and thornbill authored Nov 1, 2024
1 parent 9ff9f05 commit 6d37cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/playerstats/playerstats.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function getDisplayTranscodeFps(session, player) {
const mediaSource = playbackManager.currentMediaSource(player) || {};
const videoStream = (mediaSource.MediaStreams || []).find((s) => s.Type === 'Video') || {};

const originalFramerate = videoStream.AverageFrameRate;
const originalFramerate = videoStream.ReferenceFrameRate || videoStream.RealFrameRate;
const transcodeFramerate = session.TranscodingInfo.Framerate;

if (!originalFramerate) {
Expand Down

0 comments on commit 6d37cfc

Please sign in to comment.