avcodec/h264dec: More elaborate documentation for frame_recovered

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2023-10-02 20:18:54 +02:00
parent 68e1cf204a
commit e4337606e1
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 11 additions and 1 deletions

View File

@ -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;