mirror of https://github.com/libsdl-org/SDL.git
Removed unused variables
This commit is contained in:
parent
6efe5f30ed
commit
c09daf8388
|
|
@ -743,7 +743,6 @@ static SDL_bool GetTextureForD3D11Frame(AVFrame *frame, SDL_Texture **texture)
|
||||||
static SDL_bool GetTextureForVideoToolboxFrame(AVFrame *frame, SDL_Texture **texture)
|
static SDL_bool GetTextureForVideoToolboxFrame(AVFrame *frame, SDL_Texture **texture)
|
||||||
{
|
{
|
||||||
#ifdef SDL_PLATFORM_APPLE
|
#ifdef SDL_PLATFORM_APPLE
|
||||||
int texture_width = 0, texture_height = 0;
|
|
||||||
CVPixelBufferRef pPixelBuffer = (CVPixelBufferRef)frame->data[3];
|
CVPixelBufferRef pPixelBuffer = (CVPixelBufferRef)frame->data[3];
|
||||||
OSType nPixelBufferType = CVPixelBufferGetPixelFormatType(pPixelBuffer);
|
OSType nPixelBufferType = CVPixelBufferGetPixelFormatType(pPixelBuffer);
|
||||||
size_t nPixelBufferWidth = CVPixelBufferGetWidthOfPlane(pPixelBuffer, 0);
|
size_t nPixelBufferWidth = CVPixelBufferGetWidthOfPlane(pPixelBuffer, 0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue