pthread_frame: Propagate sw_pix_fmt across threads
authorMark Thompson <sw@jkqxz.net>
Thu, 30 Mar 2017 21:58:59 +0000 (22:58 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 2 Apr 2017 15:00:03 +0000 (16:00 +0100)
libavcodec/pthread_frame.c

index 6d14a87..a72391b 100644 (file)
@@ -229,6 +229,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;