From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 52B1E47C6D for ; Tue, 14 Nov 2023 17:21:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 60FBA68CD73; Tue, 14 Nov 2023 19:21:02 +0200 (EET) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C9AF668CD41 for ; Tue, 14 Nov 2023 19:20:54 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 303C160002 for ; Tue, 14 Nov 2023 17:20:53 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 14 Nov 2023 18:20:48 +0100 Message-Id: <20231114172051.13872-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231114172051.13872-1-michael@niedermayer.cc> References: <20231114172051.13872-1-michael@niedermayer.cc> X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/6] avcodec/h264dec: More elaborate documentation for frame_recovered X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: Michael Niedermayer --- libavcodec/h264dec.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h index b0c54ad82fb..ede51951727 100644 --- a/libavcodec/h264dec.h +++ b/libavcodec/h264dec.h @@ -524,7 +524,17 @@ typedef struct H264Context { */ #define FRAME_RECOVERED_HEURISTIC (1 << 2) - int frame_recovered; ///< Initial frame has been completely recovered + /** + * Initial frame has been completely recovered. + * + * Once this is set, all following decoded as well as displayed frames will be marked as recovered + * If a frame is marked as recovered frame_recovered will be set once this frame is output and thus + * all subsequently output fraames are also marked as recovered + * + * In effect, if you want all subsequent DECODED frames marked as recovered, set frame_recovered + * If you want all subsequent DISPAYED frames marked as recovered, set the frame->recovered + */ + int frame_recovered; int has_recovery_point; -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".