/* */
const int d1 = d[0] & 0x7f;
- const int d2 = d[1] & 0x7f;
+ // const int d2 = d[1] & 0x7f;
if( d1 == 0x14 )
h->i_channel = 1;
else if( d1 == 0x1c )
static void Eia608Exit( eia608_t *h )
{
+ VLC_UNUSED( h );
}
}
int i_ret;
- unsigned i_padding;
+ unsigned i_padding = 0;
aob_group_t p_aob_group[2];
switch( p_sys->i_type )
{
case LPCM_VOB:
- i_padding = 0;
i_ret = VobHeader( &i_rate, &i_channels, &i_original_channels, &i_bits,
p_block->p_buffer );
break;
p_aob_group,
p_block->p_buffer );
break;
- default:
- assert(0);
case LPCM_BD:
- i_padding = 0;
i_ret = BdHeader( &i_rate, &i_channels, &i_original_channels, &i_bits,
p_block->p_buffer );
break;
+ default:
+ assert(0);
}
if( i_ret || p_block->i_buffer <= p_sys->i_header_size + i_padding )
for( int i = 0; i < 2; i++ )
{
const aob_group_t *g = &p_group[1-i];
- const int i_group_size = 2 * g->i_channels * i_bits / 8;
+ const unsigned int i_group_size = 2 * g->i_channels * i_bits / 8;
if( p_block->i_buffer < i_group_size )
{
static picture_t *DecodePacket( decoder_t *, ogg_packet * );
static void ParseTheoraComments( decoder_t * );
-static void theora_CopyPicture( decoder_t *, picture_t *, yuv_buffer * );
+static void theora_CopyPicture( picture_t *, yuv_buffer * );
static int OpenEncoder( vlc_object_t *p_this );
static void CloseEncoder( vlc_object_t *p_this );
p_pic = decoder_NewPicture( p_dec );
if( !p_pic ) return NULL;
- theora_CopyPicture( p_dec, p_pic, &yuv );
+ theora_CopyPicture( p_pic, &yuv );
p_pic->date = p_sys->i_pts;
* theora_CopyPicture: copy a picture from theora internal buffers to a
* picture_t structure.
*****************************************************************************/
-static void theora_CopyPicture( decoder_t *p_dec, picture_t *p_pic,
+static void theora_CopyPicture( picture_t *p_pic,
yuv_buffer *yuv )
{
int i_plane, i_line, i_dst_stride, i_src_stride;