소스 검색

ffmpeg_dxva2: fix mixing of declarations and statements

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer 11 년 전
부모
커밋
648f7a6ec5
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      ffmpeg_dxva2.c

+ 2 - 1
ffmpeg_dxva2.c

@@ -120,9 +120,10 @@ static void dxva2_destroy_decoder(AVCodecContext *s)
 {
     InputStream  *ist = s->opaque;
     DXVA2Context *ctx = ist->hwaccel_ctx;
+    int i;
 
     if (ctx->surfaces) {
-        for (int i = 0; i < ctx->num_surfaces; i++) {
+        for (i = 0; i < ctx->num_surfaces; i++) {
             if (ctx->surfaces[i])
                 IDirect3DSurface9_Release(ctx->surfaces[i]);
         }