Add MediaStream.ReferenceFrameRate for problematic video files (#12603)

Co-authored-by: Nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
gnattu 2024-09-08 01:16:23 +08:00 committed by GitHub
parent 57452d65ef
commit 5a8a19e07b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 30 additions and 13 deletions

View file

@ -217,7 +217,7 @@ namespace MediaBrowser.Model.Dlna
var stream = TargetVideoStream;
return MaxFramerate.HasValue && !IsDirectStream
? MaxFramerate
: stream is null ? null : stream.AverageFrameRate ?? stream.RealFrameRate;
: stream?.ReferenceFrameRate;
}
}