[FFmpeg-devel] [PATCH v2 2/2] avcodec/libx264: Separate headers not supported in AVC-Intra mode

lance.lmwang at gmail.com lance.lmwang at gmail.com
Tue Jun 22 04:27:46 EEST 2021


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavcodec/libx264.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 3caefee..be05919 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -893,6 +893,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;
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list