Update web/src/components/player/JSMpegPlayer.tsx

This commit is contained in:
Blake Blackshear 2024-02-10 06:05:41 -06:00 committed by GitHub
parent 79e3361793
commit 1a0fd50081
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,6 @@ export default function JSMpegPlayer({
const scaledHeight = useMemo(() => {
const scaledHeight = Math.floor(availableWidth / aspectRatio);
const finalHeight = Math.min(scaledHeight, height);
console.log(`${containerWidth} / ${aspectRatio} -< ${containerHeight}`);
if (containerHeight < finalHeight) {
return containerHeight;