Commit a2590d21 authored by Christophe Massiot's avatar Christophe Massiot

* modules/codec/spudec: Decreased verbosity.

parent cd67f552
......@@ -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;
......
......@@ -235,6 +235,7 @@ 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 */
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 );
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment