mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
pthread: Fix mixing of declarations and statements.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
967bdb8572
commit
79a19f6e58
@ -895,6 +895,7 @@ error:
|
|||||||
void ff_thread_flush(AVCodecContext *avctx)
|
void ff_thread_flush(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
FrameThreadContext *fctx = avctx->thread_opaque;
|
FrameThreadContext *fctx = avctx->thread_opaque;
|
||||||
|
int i;
|
||||||
|
|
||||||
if (!avctx->thread_opaque) return;
|
if (!avctx->thread_opaque) return;
|
||||||
|
|
||||||
@ -910,7 +911,7 @@ void ff_thread_flush(AVCodecContext *avctx)
|
|||||||
fctx->delaying = 1;
|
fctx->delaying = 1;
|
||||||
fctx->prev_thread = NULL;
|
fctx->prev_thread = NULL;
|
||||||
// Make sure decode flush calls with size=0 won't return old frames
|
// 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;
|
fctx->threads[i].got_frame = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user