Commit 6829d902 authored by Ghislain MARY's avatar Ghislain MARY

Fix aspect ratio of video.

parent 0dbb739a
......@@ -252,6 +252,7 @@ MSWinRTCap::MSWinRTCap()
mVideoSize.height = MS_VIDEO_SIZE_CIF_H;
mHelper = ref new MSWinRTCapHelper();
smInstantiated = true;
initialize();
}
MSWinRTCap::~MSWinRTCap()
......@@ -379,8 +380,8 @@ void MSWinRTCap::applyVideoSize()
MSVideoSize vs = mVideoSize;
mEncodingProfile->Video->Width = vs.width;
mEncodingProfile->Video->Height = vs.height;
mEncodingProfile->Video->PixelAspectRatio->Numerator = vs.width;
mEncodingProfile->Video->PixelAspectRatio->Denominator = vs.height;
mEncodingProfile->Video->PixelAspectRatio->Numerator = 1;
mEncodingProfile->Video->PixelAspectRatio->Denominator = 1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment