[FFmpeg-cvslog] pthread_frame: Propagate sw_pix_fmt across threads

Mark Thompson git at videolan.org
Thu Oct 26 20:12:43 EEST 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Thu Mar 30 22:58:59 2017 +0100| [c2bebfc8012821a2a22b64cae9e3cdea0f15792c] | committer: Mark Thompson

pthread_frame: Propagate sw_pix_fmt across threads

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c2bebfc8012821a2a22b64cae9e3cdea0f15792c
---

 libavcodec/pthread_frame.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c
index 6d14a878a4..a72391ba36 100644
--- a/libavcodec/pthread_frame.c
+++ b/libavcodec/pthread_frame.c
@@ -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;



More information about the ffmpeg-cvslog mailing list