Message ID | 20240607130135.9088-20-anton@khirnov.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:c209:0:b0:460:55fa:d5ed with SMTP id d9csp1010479vqo; Fri, 7 Jun 2024 06:06:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUe6Zb4iF9yxSYZdsCXSqNgo42+WKKSwk518W3qxGOYvaqGKn+X3ao+lzIX2MN/o0rOw9ofWmgCuRfTQ1YU0DG6ZgAZR0OWdB487w== X-Google-Smtp-Source: AGHT+IGyHSD+1u5aZGJGu/Ui8PHepKYJJMv+15kKYRfyooks0LKMUbPhV7N7hyXxxlKBxUdxsmMI X-Received: by 2002:a17:906:a455:b0:a68:cb91:1b91 with SMTP id a640c23a62f3a-a6cd73c985emr154425366b.36.1717765613588; Fri, 07 Jun 2024 06:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717765613; cv=none; d=google.com; s=arc-20160816; b=UZo+9hSDbW1dHkTtZ+wrsf2EG9hcOhTBjWHKzd3sh+NsLoZEGjgmk7VwHY3lK2Op6S c+QZk7f/S8t22w1/kkp6dloDPASkFjTVwOH8m9XD4f4ZKwYUdMOI2YrqflO7FhDMUFLx q8CDBRWUD/fvaKsxDN4R3J8pZFSFtFeC7E17OtReWDbE3HtSdKjjiMNXaBLa2V6y6THQ xCR661Uh23X2xQWvmBYpyUQBgFTMJoBbvnVhaDH/xi9RUZbao01aI2SGuwdeLpdNPNKJ U6ngs6bq08iLQ/K4an8lKe2M69hA7N/KEd8dJzYEMBtbiIvkNrELWTcQcksP47yp4rm0 UbqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=rT5lYmKRhG3IQDSW5YSAUfpG+VUyRwA3EO5wYpZxixU=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=T2nElkRkJ/CtUOjtiKRHXQCzoA3H/3jLqxtSKOqaJ+txgoD2Apd3h+mHjU8EXIPA1H jJn20UBiH9ftfvf0Cww9ZRN9mvFO+iaDnt4joNtHHUzMWa4+a2QcsAGgwMaJEOAi7osd 0C9qanbS2QupGZh2AObaFVMBaBs/hndqzztGGLqsSkX3qQqscYEWgzWhr4eU1/nmcpqS 4pl6oB6C4N9djHXybp0Jn9IbXDKit4XPUQ7tDMWRixDxFQZBz6goRfGNzZVdEkQO1gDf Q3rIGJQ4bN0D6+ZMDrvwkcgsO/t3WRa7QIGEL+xrXycqHzsEI+U7UKJG4wKQPr0J9Ey0 5mqg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=VAN3B604; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a6e3516be02si54969566b.388.2024.06.07.06.06.52; Fri, 07 Jun 2024 06:06:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=VAN3B604; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2744668D80D; Fri, 7 Jun 2024 16:04:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8684768D76F for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 16:03:50 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=VAN3B604; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id A0B884DE7 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:48 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id a7RVhCFjImXe for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1717765422; bh=cG6+5CSkhn99F092qwFO8sYRm7J32tZK6qg7PlZ4wWU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VAN3B604eXcBclpSEGMDsafbfd5V8DHDNp9sjuAF7ifNoNwFmyGqXdJNZvYGgnL3r 5gqaGBbNXTk1kHAvyDAg1CGysOWqoW4Z9+/qb098YeBiL/0BXx3z3bA6p8YaLx3dEn K/TUZjjj1T1bBsX6GsRFvps6YcGh66ypbzv6hc73jBn/Zo7fb0Mubt8UiCXcDdbnBA p20R41flgEYI18qL/N/16GzjQakzkTGFaj9eThzwiW+yeCrqOID64pL3aevyTSxsD3 DG1z9mDovoV3hHIRnIySUYVsGI9cegqyPNqafo4ctvg2L3VkehugyFv8imSK5nAISR 4wQ1v8ZGXnt7Q== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 064AD4DF6 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:41 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 433AB3A1540 for <ffmpeg-devel@ffmpeg.org>; Fri, 07 Jun 2024 15:03:35 +0200 (CEST) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Fri, 7 Jun 2024 15:01:16 +0200 Message-ID: <20240607130135.9088-20-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240607130135.9088-1-anton@khirnov.net> References: <20240607130135.9088-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 20/39] lavc/hevcdec: only set no_rasl_output_flag for IRAP frames X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: X13sOqZIpqBk |
Series |
[FFmpeg-devel,01/39] lavc/hevcdec: do not free SliceHeader arrays in pic_arrays_free()
|
expand
|
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 585a066426..d444ea93f7 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -2925,7 +2925,9 @@ static int hevc_frame_start(HEVCContext *s) s->is_decoded = 0; s->first_nal_type = s->nal_unit_type; - s->no_rasl_output_flag = IS_IDR(s) || IS_BLA(s) || (s->nal_unit_type == HEVC_NAL_CRA_NUT && s->last_eos); + if (IS_IRAP(s)) + s->no_rasl_output_flag = IS_IDR(s) || IS_BLA(s) || + (s->nal_unit_type == HEVC_NAL_CRA_NUT && s->last_eos); /* 8.3.1 */ if (s->temporal_id == 0 && diff --git a/libavcodec/hevc/hevcdec.h b/libavcodec/hevc/hevcdec.h index 5eaebd3584..fa7caf9cf7 100644 --- a/libavcodec/hevc/hevcdec.h +++ b/libavcodec/hevc/hevcdec.h @@ -493,6 +493,7 @@ typedef struct HEVCContext { int overlap; int is_decoded; + // NoRaslOutputFlag associated with the last IRAP frame int no_rasl_output_flag; HEVCPredContext hpc;