]> git.sesse.net Git - vlc/commitdiff
. a small fix .... (many other to follow in the next days)
authorDamien Lucas <nitrox@videolan.org>
Thu, 6 Nov 2003 19:35:05 +0000 (19:35 +0000)
committerDamien Lucas <nitrox@videolan.org>
Thu, 6 Nov 2003 19:35:05 +0000 (19:35 +0000)
modules/codec/dvbsub.c

index 7a9bb7f15deec8c1cc840126f7b7b1d8fcebf125..f561f96b0eff1575f59ac979b155ee46d12af3ad 100644 (file)
@@ -2,7 +2,7 @@
  * dvbsub.c : DVB subtitles decoder thread
  *****************************************************************************
  * Copyright (C) 2003 ANEVIA
- * $Id: dvbsub.c,v 1.1 2003/11/06 16:37:19 nitrox Exp $
+ * $Id: dvbsub.c,v 1.2 2003/11/06 19:35:05 nitrox Exp $
  *
  * Authors: Damien LUCAS <damien.lucas@anevia.com>
  *
@@ -1250,6 +1250,10 @@ static void dvbsub_render( dvbsub_thread_t *p_dec, dvbsub_all_t* dvbsub)
         p_render->i_y = p_region->i_y + p_objectdef->i_yoffset;
         p_render->p_rle_top = p_object->topfield;
         p_render->p_rle_bot = p_object->bottomfield;
+
+        // if we did not recieved the CLUT yet
+        if ( !dvbsub->p_clut[p_region->i_clut] ) return;
+
         /* Compute the color datas according to the appropriate CLUT */
         for(p_c=p_render->p_rle_top->p_codes;p_c->p_next!=NULL; p_c=p_c->p_next)
         {