Build fix for windows.

Also a correction to the frame rate for the mpg encoding.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6416 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2010-11-14 22:07:52 +00:00
parent 50882c8d30
commit 2378b443c1
2 changed files with 2 additions and 2 deletions

View file

@ -249,7 +249,7 @@ bool AVIDump::CreateFile()
s_CodecContext->bit_rate = 400000;
s_CodecContext->width = s_width;
s_CodecContext->height = s_height;
s_CodecContext->time_base = (AVRational){1, 60};
s_CodecContext->time_base = (AVRational){1, 30};
s_CodecContext->gop_size = 10;
s_CodecContext->max_b_frames = 1;
s_CodecContext->pix_fmt = PIX_FMT_YUV420P;

View file

@ -1333,7 +1333,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
s_criticalScreenshot.Enter();
int w = dst_rect.GetWidth();
int h = dst_rect.GetHeight();
uint8_t *data = new uint8_t[3 * w * h];
u8 *data = new u8[3 * w * h];
glPixelStorei(GL_PACK_ALIGNMENT, 1);
glReadPixels(dst_rect.left, dst_rect.bottom, w, h, GL_BGR, GL_UNSIGNED_BYTE, data);
if (GL_REPORT_ERROR() == GL_NO_ERROR && w > 0 && h > 0)