mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
Avoid C99 variable declarations within for statements.
We generally do not declare variables within for statements and there are compilers that choke on such constructs.
This commit is contained in:
@@ -865,6 +865,7 @@ error:
|
||||
|
||||
void ff_thread_flush(AVCodecContext *avctx)
|
||||
{
|
||||
int i;
|
||||
FrameThreadContext *fctx = avctx->thread_opaque;
|
||||
|
||||
if (!avctx->thread_opaque) return;
|
||||
@@ -880,7 +881,7 @@ void ff_thread_flush(AVCodecContext *avctx)
|
||||
fctx->next_decoding = fctx->next_finished = 0;
|
||||
fctx->delaying = 1;
|
||||
fctx->prev_thread = NULL;
|
||||
for (int i = 0; i < avctx->thread_count; i++) {
|
||||
for (i = 0; i < avctx->thread_count; i++) {
|
||||
PerThreadContext *p = &fctx->threads[i];
|
||||
// Make sure decode flush calls with size=0 won't return old frames
|
||||
p->got_frame = 0;
|
||||
|
||||
Reference in New Issue
Block a user