From 81bad080cd99c3754763d5cfe884f307120eba81 Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Fri, 18 Jun 2021 19:55:07 +0800 Subject: avcodec/libx264: Separate headers not supported in AVC-Intra mode Signed-off-by: Limin Wang --- libavcodec/libx264.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavcodec/libx264.c') 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; -- cgit v1.2.3