Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-29 03:54:42 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-29 03:54:42 +0400
commit648f7a6ec5b34b03074db89ddbf6b2bc39f95ab0 (patch)
tree9330d9c348f72f81657d58d209780dbd7e908a62 /ffmpeg_dxva2.c
parent21c7e99659bea1ed735caa83399a5777957a8e16 (diff)
ffmpeg_dxva2: fix mixing of declarations and statements
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_dxva2.c')
-rw-r--r--ffmpeg_dxva2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg_dxva2.c b/ffmpeg_dxva2.c
index 10c8f2744a..a0a83a161e 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]);
}