From 820583769749e3af48e62fe98674267e37a68ca8 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 5 May 2025 20:36:51 +0200 Subject: [PATCH 09/11] avcodec/av1_parser: Avoid copying data Disable forcing refcounting; this is possible because the data's lifetime is known to include the whole lifetime of the fragment (which is contained in one call to the parser). Signed-off-by: Andreas Rheinhardt --- libavcodec/av1_parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c index 2b79493bf8..77e1b161b6 100644 --- a/libavcodec/av1_parser.c +++ b/libavcodec/av1_parser.c @@ -196,6 +196,7 @@ static av_cold int av1_parser_init(AVCodecParserContext *ctx) s->cbc->decompose_unit_types = decompose_unit_types; s->cbc->nb_decompose_unit_types = FF_ARRAY_ELEMS(decompose_unit_types); + s->cbc->force_refcounting = 0; return 0; } -- 2.45.2