[FFmpeg-cvslog] ffmpeg_dxva2: fix mixing of declarations and statements

Michael Niedermayer git at videolan.org
Tue Apr 29 04:38:14 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 29 01:54:42 2014 +0200| [648f7a6ec5b34b03074db89ddbf6b2bc39f95ab0] | committer: Michael Niedermayer

ffmpeg_dxva2: fix mixing of declarations and statements

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=648f7a6ec5b34b03074db89ddbf6b2bc39f95ab0
---

 ffmpeg_dxva2.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ffmpeg_dxva2.c b/ffmpeg_dxva2.c
index 10c8f27..a0a83a1 100644
--- a/ffmpeg_dxva2.c
+++ b/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]);
         }



More information about the ffmpeg-cvslog mailing list