[vlc-commits] [Git][videolan/vlc][master] 2 commits: codec: videotoolbox: flush incomplete fields
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Thu Feb 29 15:50:03 UTC 2024
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
ce748068 by François Cartegnie at 2024-02-29T15:27:01+00:00
codec: videotoolbox: flush incomplete fields
- - - - -
ccfd7ccc by François Cartegnie at 2024-02-29T15:27:01+00:00
codec: videotoolbox: fix potential DPB deadloop
- - - - -
1 changed file:
- modules/codec/videotoolbox/dpb.c
Changes:
=====================================
modules/codec/videotoolbox/dpb.c
=====================================
@@ -150,11 +150,11 @@ static picture_t * BumpDPB(struct dpb_s *dpb, date_t *ptsdate, const frame_info_
picture_t *p_output = NULL;
picture_t **pp_output_next = &p_output;
- for(;;)
+ for(;dpb->i_stored_fields;)
{
bool b_output = false;
- if(p_info->b_flush && dpb->i_size > 0)
+ if(p_info->b_flush && dpb->i_stored_fields > 0)
b_output = true;
else if(dpb->i_size >= p_info->i_max_pics_buffering)
b_output = true;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/94d080e3e4ab4d7626190554d30e2eedc98ede74...ccfd7ccc5792c3142d4355dbe2f5001af8de4ab3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/94d080e3e4ab4d7626190554d30e2eedc98ede74...ccfd7ccc5792c3142d4355dbe2f5001af8de4ab3
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list