diff --git a/libavcodec/h264.c b/libavcodec/h264.c index d5f4760b0c..3dcf00a357 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1224,6 +1224,7 @@ static int decode_update_thread_context(AVCodecContext *dst, /* copy block_offset since frame_start may not be called */ memcpy(h->block_offset, h1->block_offset, sizeof(h->block_offset)); h264_set_parameter_from_sps(h); + h->cur_chroma_format_idc = h1->cur_chroma_format_idc; } err = ff_mpeg_update_thread_context(dst, src);