Browse Source

svcdsub: Don't store unused values; skip over them

pull/62/head
Hugo Beauzée-Luyssen 9 years ago
parent
commit
b2b4c42ccb
  1. 7
      modules/codec/svcdsub.c

7
modules/codec/svcdsub.c

@ -362,12 +362,13 @@ static void ParseHeader( decoder_t *p_dec, block_t *p_block )
{
decoder_sys_t *p_sys = p_dec->p_sys;
uint8_t *p = p_block->p_buffer;
uint8_t i_options, i_options2, i_cmd, i_cmd_arg;
uint8_t i_options, i_cmd;
int i;
p_sys->i_spu_size = GETINT16(p);
i_options = *p++;
i_options2 = *p++;
// Skip over unused value
p++;
if( i_options & 0x08 ) { p_sys->i_duration = GETINT32(p); }
else p_sys->i_duration = 0; /* Ephemer subtitle */
@ -388,7 +389,7 @@ static void ParseHeader( decoder_t *p_dec, block_t *p_block )
i_cmd = *p++;
/* We do not really know this, FIXME */
if( i_cmd ) {i_cmd_arg = GETINT32(p);}
if( i_cmd ) { p += 4; }
/* Actually, this is measured against a different origin, so we have to
* adjust it */

Loading…
Cancel
Save