]> git.sesse.net Git - vlc/commitdiff
* modules/codec/dvbsub.c: oops, small fix.
authorGildas Bazin <gbazin@videolan.org>
Fri, 15 Oct 2004 10:40:39 +0000 (10:40 +0000)
committerGildas Bazin <gbazin@videolan.org>
Fri, 15 Oct 2004 10:40:39 +0000 (10:40 +0000)
modules/codec/dvbsub.c

index 7cfc659b24f77f1d59f0ab6d872ac1cdf2464f71..852c7e6a102ef7e19b6d61b529e453eb8e3917e6 100644 (file)
@@ -472,7 +472,7 @@ static void decode_clut( decoder_t *p_dec, bs_t *s )
     decoder_sys_t *p_sys = p_dec->p_sys;
     uint16_t      i_segment_length;
     uint16_t      i_processed_length;
-    dvbsub_clut_t *p_clut;
+    dvbsub_clut_t *p_clut, *p_next;
     int           i_id, i_version;
 
     i_segment_length = bs_read( s, 16 );
@@ -504,7 +504,9 @@ static void decode_clut( decoder_t *p_dec, bs_t *s )
     }
 
     /* Initialize to default clut */
+    p_next = p_clut->p_next;
     *p_clut = p_sys->default_clut;
+    p_clut->p_next = p_next;
 
     /* We don't have this version of the CLUT: Parse it */
     p_clut->i_version = i_version;