summaryrefslogtreecommitdiff
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-17 23:49:56 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-17 23:49:56 +0100
commit79a19f6e589b302de4502fd4cb1e9d800cfa4179 (patch)
treed49ce1637003d2bc783f0ee561d1976c2e71a9f1 /libavcodec/pthread.c
parent967bdb8572f27b9891fe7bd9b8489146a906633d (diff)
pthread: Fix mixing of declarations and statements.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index d02f6844b4..7834922f9f 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -895,6 +895,7 @@ error:
void ff_thread_flush(AVCodecContext *avctx)
{
FrameThreadContext *fctx = avctx->thread_opaque;
+ int i;
if (!avctx->thread_opaque) return;
@@ -910,7 +911,7 @@ void ff_thread_flush(AVCodecContext *avctx)
fctx->delaying = 1;
fctx->prev_thread = NULL;
// Make sure decode flush calls with size=0 won't return old frames
- for (int i = 0; i < avctx->thread_count; i++)
+ for (i = 0; i < avctx->thread_count; i++)
fctx->threads[i].got_frame = 0;
}