[FFmpeg-devel] [PATCH] avcodec/libxavs: Always use in-band headers

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Tue May 11 04:52:14 EEST 2021


The code to create global headers is broken and deactivated,
so one must not deactivate in-band headers even if the
AV_CODEC_FLAG_GLOBAL_HEADER is set; doing otherwise creates
unplayable files when this flag is set.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/libxavs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c
index 253f4bde6a..01ee8b4187 100644
--- a/libavcodec/libxavs.c
+++ b/libavcodec/libxavs.c
@@ -335,7 +335,7 @@ static av_cold int XAVS_init(AVCodecContext *avctx)
     x4->params.i_threads      = avctx->thread_count;
     x4->params.b_interlaced   = avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT;
 
-    if (avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER)
+    if (avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER && 0)
         x4->params.b_repeat_headers = 0;
 
     x4->enc = xavs_encoder_open(&x4->params);
-- 
2.27.0



More information about the ffmpeg-devel mailing list