X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Fadpcm.c;h=c9a9ec2f85cb9fa4176ada714b008bce184da261;hb=dfea366d0cf300a175d5efe39b7ec200c9fe7c4e;hp=ecccdc9e4c5ffc978a937338043052a05e685587;hpb=27d483e9ef7a451397d7857251c8d67097661f1d;p=vlc diff --git a/modules/codec/adpcm.c b/modules/codec/adpcm.c index ecccdc9e4c..c9a9ec2f85 100644 --- a/modules/codec/adpcm.c +++ b/modules/codec/adpcm.c @@ -31,7 +31,7 @@ # include "config.h" #endif -#include +#include #include #include #include @@ -45,7 +45,7 @@ static void CloseDecoder( vlc_object_t * ); static aout_buffer_t *DecodeBlock( decoder_t *, block_t ** ); vlc_module_begin(); - set_description( _("ADPCM audio decoder") ); + set_description( N_("ADPCM audio decoder") ); set_capability( "decoder", 50 ); set_category( CAT_INPUT ); set_subcategory( SUBCAT_INPUT_ACODEC ); @@ -167,10 +167,7 @@ static int OpenDecoder( vlc_object_t *p_this ) /* Allocate the memory needed to store the decoder's structure */ if( ( p_dec->p_sys = p_sys = (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL ) - { - msg_Err( p_dec, "out of memory" ); return VLC_ENOMEM; - } switch( p_dec->fmt_in.i_codec ) { @@ -205,7 +202,7 @@ static int OpenDecoder( vlc_object_t *p_this ) { p_sys->i_block = (p_sys->codec == ADPCM_IMA_QT) ? 34 * p_dec->fmt_in.audio.i_channels : 1024; - msg_Warn( p_dec, "block size undefined, using %d", p_sys->i_block ); + msg_Warn( p_dec, "block size undefined, using %zu", p_sys->i_block ); } else { @@ -244,7 +241,7 @@ static int OpenDecoder( vlc_object_t *p_this ) } msg_Dbg( p_dec, "format: samplerate:%d Hz channels:%d bits/sample:%d " - "blockalign:%d samplesperblock:%d", + "blockalign:%zu samplesperblock:%zu", p_dec->fmt_in.audio.i_rate, p_dec->fmt_in.audio.i_channels, p_dec->fmt_in.audio.i_bitspersample, p_sys->i_block, p_sys->i_samplesperblock );