[vlc-commits] [Git][videolan/vlc][3.0.x] codec: cea708: fix tail pointer with multiple segments

François Cartegnie (@fcartegnie) gitlab at videolan.org
Sun Sep 13 17:28:24 UTC 2026



François Cartegnie pushed to branch 3.0.x at VideoLAN / VLC


Commits:
1da0650b by François Cartegnie at 2026-09-13T19:09:48+02:00
codec: cea708: fix tail pointer with multiple segments

fixes #30093

(cherry picked from commit fd814768bfa78bdd9d50344eebbd89b7a892d898)

- - - - -


1 changed file:

- modules/codec/cea708.c


Changes:

=====================================
modules/codec/cea708.c
=====================================
@@ -999,7 +999,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;
         }
@@ -1024,7 +1024,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/1da0650bc4435d94638cab3016f65a4d23fa3ad4

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1da0650bc4435d94638cab3016f65a4d23fa3ad4
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