mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
Return null on division by zero
This commit is contained in:
@@ -1052,7 +1052,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
return null;
|
||||
}
|
||||
|
||||
return divisor == 0f ? 0f : dividend / divisor;
|
||||
return divisor == 0f ? null : dividend / divisor;
|
||||
}
|
||||
|
||||
private void SetAudioRuntimeTicks(InternalMediaInfoResult result, MediaInfo data)
|
||||
|
||||
Reference in New Issue
Block a user