Skip to content

Commit

Permalink
[VideoPlayer] Fix possible wrong aspect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Fedchin authored and popcornmix committed Apr 3, 2020
1 parent 0ae833d commit af6925e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp
Expand Up @@ -185,7 +185,7 @@ void CVideoPlayerVideo::OpenStream(CDVDStreamInfo &hint, CDVDVideoCodec* codec)
}

// use aspect in stream if available
if (hint.forced_aspect)
if (hint.forced_aspect && !std::isnan(hint.aspect))
m_fForcedAspectRatio = static_cast<float>(hint.aspect);
else
m_fForcedAspectRatio = 0.0f;
Expand Down

0 comments on commit af6925e

Please sign in to comment.