]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pthread.c
vda: undef Picture.
[ffmpeg] / libavcodec / pthread.c
index 4a44cea68f7bf1e9218635eb4ba061f1b0f13074..8eff782fcb02396ddf089336cd4541790be914f1 100644 (file)
@@ -38,6 +38,8 @@
 #include <pthread.h>
 #elif HAVE_W32THREADS
 #include "w32pthreads.h"
+#elif HAVE_OS2THREADS
+#include "os2threads.h"
 #endif
 
 typedef int (action_func)(AVCodecContext *c, void *arg);
@@ -363,6 +365,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src,
     }
 
     if (for_user) {
+        dst->delay         = src->thread_count - 1;
         dst->coded_frame   = src->coded_frame;
     } else {
         if (dst->codec->update_thread_context)