diff mbox series

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

Message ID 1624153359-28171-2-git-send-email-lance.lmwang@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel,1/2] avcodec/libx264: Add support for Sony XAVC Class 300 and 480
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Limin Wang June 20, 2021, 1:42 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

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

Patch

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 89f5c7b..caabc4e 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -891,6 +891,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;