Fix int overflow in DAR calculation
Originally committed to SVN as r6567.
This commit is contained in:
parent
77e755d109
commit
175443d7a6
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
|
||||||
Width = TempFrame->EncodedWidth;
|
Width = TempFrame->EncodedWidth;
|
||||||
Height = TempFrame->EncodedHeight;
|
Height = TempFrame->EncodedHeight;
|
||||||
if (VideoInfo->SARDen > 0 && VideoInfo->SARNum > 0)
|
if (VideoInfo->SARDen > 0 && VideoInfo->SARNum > 0)
|
||||||
DAR = double(Width * VideoInfo->SARNum) / (Height * VideoInfo->SARDen);
|
DAR = double(Width) * VideoInfo->SARNum / ((double)Height * VideoInfo->SARDen);
|
||||||
else
|
else
|
||||||
DAR = double(Width) / Height;
|
DAR = double(Width) / Height;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue