浏览代码

Removed unused variables

Sam Lantinga 1 年之前
父节点
当前提交
c09daf8388
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      test/testffmpeg.c

+ 0 - 1
test/testffmpeg.c

@@ -743,7 +743,6 @@ static SDL_bool GetTextureForD3D11Frame(AVFrame *frame, SDL_Texture **texture)
 static SDL_bool GetTextureForVideoToolboxFrame(AVFrame *frame, SDL_Texture **texture)
 {
 #ifdef SDL_PLATFORM_APPLE
-    int texture_width = 0, texture_height = 0;
     CVPixelBufferRef pPixelBuffer = (CVPixelBufferRef)frame->data[3];
     OSType nPixelBufferType = CVPixelBufferGetPixelFormatType(pPixelBuffer);
     size_t nPixelBufferWidth = CVPixelBufferGetWidthOfPlane(pPixelBuffer, 0);