Skip to content

Commit 779a318

Browse files
committed
ffv1dec: fix threaded decode failures
Fixes 7187ead The issue is that while avctx->pix_fmt is synchronized between threads, f->pix_fmt was not. Fixes fate-vsynth1-ffv1-2pass10 with THREADS=2.
1 parent 9729444 commit 779a318

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libavcodec/ffv1dec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,7 @@ static int update_thread_context(AVCodecContext *dst, const AVCodecContext *src)
11141114
fdst->plane_count = fsrc->plane_count;
11151115
fdst->ac = fsrc->ac;
11161116
fdst->colorspace = fsrc->colorspace;
1117+
fdst->pix_fmt = fsrc->pix_fmt;
11171118

11181119
fdst->ec = fsrc->ec;
11191120
fdst->intra = fsrc->intra;

0 commit comments

Comments
 (0)