mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Fixed lavc provider on the win32 port
Originally committed to SVN as r379.
This commit is contained in:
parent
815225667a
commit
0bca7e0c2e
@ -244,11 +244,11 @@ wxBitmap LAVCVideoProvider::AVFrameToWX(AVFrame *source, int n) {
|
|||||||
// Get sizes
|
// Get sizes
|
||||||
int w = codecContext->width;
|
int w = codecContext->width;
|
||||||
int h = codecContext->height;
|
int h = codecContext->height;
|
||||||
#ifdef __WINDOWS__
|
//#ifdef __WINDOWS__
|
||||||
PixelFormat format = PIX_FMT_RGBA32;
|
// PixelFormat format = PIX_FMT_RGBA32;
|
||||||
#else
|
//#else
|
||||||
PixelFormat format = PIX_FMT_RGB24;
|
PixelFormat format = PIX_FMT_RGB24;
|
||||||
#endif
|
//#endif
|
||||||
unsigned int size1 = avpicture_get_size(codecContext->pix_fmt,display_w,display_h);
|
unsigned int size1 = avpicture_get_size(codecContext->pix_fmt,display_w,display_h);
|
||||||
unsigned int size2 = avpicture_get_size(format,display_w,display_h);
|
unsigned int size2 = avpicture_get_size(format,display_w,display_h);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user