]> git.sesse.net Git - vlc/commitdiff
* modules/codec/spudec: Decreased verbosity.
authorChristophe Massiot <massiot@videolan.org>
Fri, 7 Apr 2006 16:33:51 +0000 (16:33 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 7 Apr 2006 16:33:51 +0000 (16:33 +0000)
modules/codec/spudec/parse.c
modules/codec/spudec/spudec.c
modules/codec/spudec/spudec.h

index fe7381a9b45de7c0ffc55b78f2cdd065e0099816..4589a661ef5e2e664974d99d1cbc35cfd3b0f859 100644 (file)
@@ -111,9 +111,11 @@ subpicture_t * E_(ParsePacket)( decoder_t *p_dec )
         return NULL;
     }
 
+#ifdef DEBUG_SPUDEC
     msg_Dbg( p_dec, "total size: 0x%x, RLE offsets: 0x%x 0x%x",
              p_sys->i_spu_size,
              p_spu_data->pi_offset[0], p_spu_data->pi_offset[1] );
+#endif
 
     Render( p_dec, p_spu, p_spu_data );
     free( p_spu_data );
@@ -546,8 +548,10 @@ static int ParseRLE( decoder_t *p_dec, subpicture_t * p_spu,
         return VLC_EGENERIC;
     }
 
+#ifdef DEBUG_SPUDEC
     msg_Dbg( p_dec, "valid subtitle, size: %ix%i, position: %i,%i",
              p_spu->i_width, p_spu->i_height, p_spu->i_x, p_spu->i_y );
+#endif
 
     /* Crop if necessary */
     if( i_skipped_top || i_skipped_bottom )
@@ -557,8 +561,10 @@ static int ParseRLE( decoder_t *p_dec, subpicture_t * p_spu,
 
         p_spu_data->i_y_top_offset = i_skipped_top;
         p_spu_data->i_y_bottom_offset = i_skipped_bottom;
+#ifdef DEBUG_SPUDEC
         msg_Dbg( p_dec, "cropped to: %ix%i, position: %i,%i",
                  p_spu->i_width, i_height, p_spu->i_x, i_y );
+#endif
     }
  
     /* Handle color if no palette was found */
@@ -613,8 +619,10 @@ static int ParseRLE( decoder_t *p_dec, subpicture_t * p_spu,
             p_spu_data->pi_yuv[i_shade][2] = 0x80;
         }
 
+#ifdef DEBUG_SPUDEC
         msg_Dbg( p_dec, "using custom palette (border %i, inner %i, shade %i)",
                  i_border, i_inner, i_shade );
+#endif
     }
 
     return VLC_SUCCESS;
index e60c831725b4021919d4657243ecefbaa7105bc8..26c053c3e266f8dc762a049a7da51f3e9fc640f4 100644 (file)
@@ -235,8 +235,9 @@ static block_t *Reassemble( decoder_t *p_dec, block_t **pp_block )
     if( p_sys->i_spu >= p_sys->i_spu_size )
     {
         /* We have a complete sub */
-        msg_Dbg( p_dec, "SPU packets size=%d should be %d",
-                 p_sys->i_spu, p_sys->i_spu_size );
+        if( p_sys->i_spu > p_sys->i_spu_size )
+            msg_Dbg( p_dec, "SPU packets size=%d should be %d",
+                     p_sys->i_spu, p_sys->i_spu_size );
 
         return p_sys->p_block;
     }
index 01f8d0a40f5391dbe54657105cdb4fcbf20f4043..5d59b52f56f2a5a711f420699b978ea9c7afad26 100644 (file)
@@ -21,6 +21,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+/* #define DEBUG_SPUDEC 1 */
+
 struct decoder_sys_t
 {
     int b_packetizer;