[vlc-devel] commit: Fix warnings in lpcm, cc and theora (Jean-Baptiste Kempf )
git version control
git at videolan.org
Wed Aug 19 23:43:22 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 19 23:07:35 2009 +0200| [68d880d7635a45e0c7350231e5f20def4b7a7368] | committer: Jean-Baptiste Kempf
Fix warnings in lpcm, cc and theora
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=68d880d7635a45e0c7350231e5f20def4b7a7368
---
modules/codec/cc.c | 3 ++-
modules/codec/lpcm.c | 10 ++++------
modules/codec/theora.c | 6 +++---
3 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index cb1dc4b..b53a84f 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -618,7 +618,7 @@ static void Eia608ParseChannel( eia608_t *h, const uint8_t d[2] )
/* */
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 )
@@ -1143,5 +1143,6 @@ static char *Eia608Text( eia608_t *h, bool b_html )
static void Eia608Exit( eia608_t *h )
{
+ VLC_UNUSED( h );
}
diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index fa7a1af..97685df 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -289,12 +289,11 @@ static void *DecodeFrame( decoder_t *p_dec, block_t **pp_block )
}
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;
@@ -303,13 +302,12 @@ static void *DecodeFrame( decoder_t *p_dec, block_t **pp_block )
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 )
@@ -792,7 +790,7 @@ static void AobExtract( aout_buffer_t *p_aout_buffer,
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 )
{
diff --git a/modules/codec/theora.c b/modules/codec/theora.c
index 83c4a54..97e90ca 100644
--- a/modules/codec/theora.c
+++ b/modules/codec/theora.c
@@ -82,7 +82,7 @@ static void *ProcessPacket ( decoder_t *, ogg_packet *, block_t ** );
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 );
@@ -498,7 +498,7 @@ static picture_t *DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
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;
@@ -553,7 +553,7 @@ static void CloseDecoder( vlc_object_t *p_this )
* 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;
More information about the vlc-devel
mailing list