Fixed lavc provider on the win32 port
Originally committed to SVN as r379.
This commit is contained in:
parent
815225667a
commit
0bca7e0c2e
1 changed files with 4 additions and 4 deletions
|
@ -244,11 +244,11 @@ wxBitmap LAVCVideoProvider::AVFrameToWX(AVFrame *source, int n) {
|
|||
// Get sizes
|
||||
int w = codecContext->width;
|
||||
int h = codecContext->height;
|
||||
#ifdef __WINDOWS__
|
||||
PixelFormat format = PIX_FMT_RGBA32;
|
||||
#else
|
||||
//#ifdef __WINDOWS__
|
||||
// PixelFormat format = PIX_FMT_RGBA32;
|
||||
//#else
|
||||
PixelFormat format = PIX_FMT_RGB24;
|
||||
#endif
|
||||
//#endif
|
||||
unsigned int size1 = avpicture_get_size(codecContext->pix_fmt,display_w,display_h);
|
||||
unsigned int size2 = avpicture_get_size(format,display_w,display_h);
|
||||
|
||||
|
|
Loading…
Reference in a new issue