diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-10-02 02:07:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-11-20 00:12:29 +0100 |
commit | 3f4a1a24a5f74784c182ef3e1a59b85119749472 (patch) | |
tree | 154bbbdece5eb0f29cf1ca93d1c4ffa90da63eaf /libavcodec/h264_refs.c | |
parent | d55d0bba487ce37ea8260445610341a93f6450af (diff) | |
download | ffmpeg-3f4a1a24a5f74784c182ef3e1a59b85119749472.tar.gz |
avcodec/h264: Seperate SEI and IDR recovery handling
This avoids SEI and IDR recovery flags affecting each other
Also eliminate litteral numbers from recovery handling
This should make the code clearer
Improves: tickets/4738/tickets_cut.ts
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264_refs.c')
-rw-r--r-- | libavcodec/h264_refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index a11597745c..25e521dafc 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -822,7 +822,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h) || pps_ref_count[0] <= 1 + (h->picture_structure != PICT_FRAME) && pps_ref_count[1] <= 1) && pps_ref_count[0]<=2 + (h->picture_structure != PICT_FRAME) + (2*!h->has_recovery_point) && h->cur_pic_ptr->f->pict_type == AV_PICTURE_TYPE_I){ - h->cur_pic_ptr->recovered |= 1; + h->cur_pic_ptr->recovered |= FRAME_RECOVERED_IDR; if(!h->avctx->has_b_frames) h->frame_recovered |= FRAME_RECOVERED_SEI; } |