[FFmpeg-devel] [PATCH] avcodec/libxavs: Always use in-band headers
James Almer
jamrial at gmail.com
Tue May 11 05:04:55 EEST 2021
On 5/10/2021 10:52 PM, Andreas Rheinhardt wrote:
> 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;
Disabling code like this is not ok. You can delete these two lines. The
git history exists for a reason.
>
> x4->enc = xavs_encoder_open(&x4->params);
>
More information about the ffmpeg-devel
mailing list