[vlc-commits] [Git][videolan/vlc][master] codec: cea708: fix tail pointer with multiple segments
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Mon Sep 7 08:18:16 UTC 2026
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
fd814768 by François Cartegnie at 2026-09-07T10:08:03+02:00
codec: cea708: fix tail pointer with multiple segments
fixes #30093
- - - - -
1 changed file:
- modules/codec/cea708.c
Changes:
=====================================
modules/codec/cea708.c
=====================================
@@ -1006,7 +1006,7 @@ static text_segment_t * CEA708RowToSegments( const cea708_text_row_t *p_row,
{
*pp_last = CEA708CharsToSegment( p_row, i_start, i,
b_addnewline && (i == p_row->lastcol) );
- if( *pp_last )
+ while( *pp_last )
pp_last = &((*pp_last)->p_next);
i_start = i+1;
}
@@ -1051,7 +1051,7 @@ static void CEA708SpuConvert( const cea708_window_t *p_w,
continue;
*pp_last = CEA708RowToSegments( p_w->rows[i], i < p_w->i_lastrow );
- if( *pp_last )
+ while( *pp_last )
pp_last = &((*pp_last)->p_next);
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fd814768bfa78bdd9d50344eebbd89b7a892d898
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fd814768bfa78bdd9d50344eebbd89b7a892d898
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list