]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pthread.c
vda: undef Picture.
[ffmpeg] / libavcodec / pthread.c
index b6ebea440752f297e34cb2514381f21e35b77f4a..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,8 +365,8 @@ 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;
-        dst->has_b_frames += src->thread_count - 1;
     } else {
         if (dst->codec->update_thread_context)
             err = dst->codec->update_thread_context(dst, src);