summaryrefslogtreecommitdiff
path: root/libavcodec/pthread_frame.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-03-30 22:58:59 +0100
committerMark Thompson <sw@jkqxz.net>2017-03-31 00:23:02 +0100
commitebce1332285b16418dacb369defcfd7bae06d319 (patch)
treed98f4a9ebf28e04ca259d478f6ad46c2e98f1678 /libavcodec/pthread_frame.c
parentafebf470ca73c17cc8393bfd7eeebfdf6809c2b8 (diff)
pthread_frame: Propagate sw_pix_fmt across threads
This is required by the VP9 hwaccels (both DXVA2 and VAAPI) when threads are enabled. Tested-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/pthread_frame.c')
-rw-r--r--libavcodec/pthread_frame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c
index 5b5f5fb289..4e1ad9d686 100644
--- a/libavcodec/pthread_frame.c
+++ b/libavcodec/pthread_frame.c
@@ -250,6 +250,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src,
dst->width = src->width;
dst->height = src->height;
dst->pix_fmt = src->pix_fmt;
+ dst->sw_pix_fmt = src->sw_pix_fmt;
dst->coded_width = src->coded_width;
dst->coded_height = src->coded_height;