Commit 648f7a6e authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg_dxva2: fix mixing of declarations and statements

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 21c7e996
......@@ -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]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment