Skip to content

Commit 51222df

Browse files
committed
fix parallelism bug
1 parent c9a760b commit 51222df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavcodec/pthread_frame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ int ff_thread_decode_frame(AVCodecContext *avctx,
440440
* didn't output a frame, because we don't want to accidentally signal
441441
* EOF (avpkt->size == 0 && *got_picture_ptr == 0).
442442
*/
443-
443+
finished = fctx->next_decoding >= avctx->thread_count_frame ? 0:fctx->next_decoding;
444444
do {
445445
p = &fctx->threads[finished++];
446446

0 commit comments

Comments
 (0)