Commit a63d4a77 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Remove unused variables and #ifdef DEBUG_SPUDEC the variables used when DEBUG_SPUDEC is active.

parent 3d274a15
...@@ -145,8 +145,6 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu, ...@@ -145,8 +145,6 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
uint8_t i_command = SPU_CMD_END; uint8_t i_command = SPU_CMD_END;
mtime_t date = 0; mtime_t date = 0;
unsigned int i, pi_alpha[4];
/* Initialize the structure */ /* Initialize the structure */
p_spu->i_start = p_spu->i_stop = 0; p_spu->i_start = p_spu->i_stop = 0;
p_spu->b_ephemer = VLC_FALSE; p_spu->b_ephemer = VLC_FALSE;
...@@ -216,6 +214,7 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu, ...@@ -216,6 +214,7 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
if( p_dec->fmt_in.subs.spu.palette[0] == 0xBeeF ) if( p_dec->fmt_in.subs.spu.palette[0] == 0xBeeF )
{ {
unsigned int idx[4]; unsigned int idx[4];
int i;
p_spu_data->b_palette = VLC_TRUE; p_spu_data->b_palette = VLC_TRUE;
...@@ -556,9 +555,10 @@ static int ParseRLE( decoder_t *p_dec, subpicture_t * p_spu, ...@@ -556,9 +555,10 @@ static int ParseRLE( decoder_t *p_dec, subpicture_t * p_spu,
/* Crop if necessary */ /* Crop if necessary */
if( i_skipped_top || i_skipped_bottom ) if( i_skipped_top || i_skipped_bottom )
{ {
#ifdef DEBUG_SPUDEC
int i_y = p_spu->i_y + i_skipped_top; int i_y = p_spu->i_y + i_skipped_top;
int i_height = p_spu->i_height - (i_skipped_top + i_skipped_bottom); int i_height = p_spu->i_height - (i_skipped_top + i_skipped_bottom);
#endif
p_spu_data->i_y_top_offset = i_skipped_top; p_spu_data->i_y_top_offset = i_skipped_top;
p_spu_data->i_y_bottom_offset = i_skipped_bottom; p_spu_data->i_y_bottom_offset = i_skipped_bottom;
#ifdef DEBUG_SPUDEC #ifdef DEBUG_SPUDEC
......
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