aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-06-18 19:55:07 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-06-25 09:27:52 +0800
commit81bad080cd99c3754763d5cfe884f307120eba81 (patch)
treec81f2125e14b909171f84aadf53e3b44e1b9405d /libavcodec/libx264.c
parent93da0869e60b58330dc5514e13eda10973b75444 (diff)
downloadffmpeg-81bad080cd99c3754763d5cfe884f307120eba81.tar.gz
avcodec/libx264: Separate headers not supported in AVC-Intra mode
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r--libavcodec/libx264.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index d0608e7c55..4b905bf9da 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -892,6 +892,11 @@ static av_cold int X264_init(AVCodecContext *avctx)
}
}
+#if X264_BUILD >= 142
+ /* Separate headers not supported in AVC-Intra mode */
+ if (x4->params.i_avcintra_class >= 0)
+ x4->params.b_repeat_headers = 1;
+#endif
{
AVDictionaryEntry *en = NULL;