diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 7c06489d2632c992878f50b94ad6d00b9469fd6a..867ff3914ee293cf31ac35fda9c7188acf8d1811 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -521,6 +521,7 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
     // extradata/NAL handling
     h->is_avc = h1->is_avc;
     h->nal_length_size = h1->nal_length_size;
+    h->x264_build      = h1->x264_build;
 
     // Dequantization matrices
     // FIXME these are big - can they be only copied when PPS changes?