X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Ftarkin.c;h=a408ba9cc7e5666571a0f11b0078a2e15bbfd862;hb=be378fbc80c384e2541517d6853b59411b7e67de;hp=55052e7f9f0d40dcd39198d0b9af6b7a2f0f6af0;hpb=2cb472dba008f7d877ffe6bae9c5575253365282;p=vlc diff --git a/modules/codec/tarkin.c b/modules/codec/tarkin.c index 55052e7f9f..a408ba9cc7 100644 --- a/modules/codec/tarkin.c +++ b/modules/codec/tarkin.c @@ -24,9 +24,14 @@ /***************************************************************************** * Preamble *****************************************************************************/ -#include -#include - +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include +#include +#include #include /* FIXME */ @@ -72,7 +77,7 @@ static void tarkin_CopyPicture( decoder_t *, picture_t *, uint8_t *, int ); * Module descriptor *****************************************************************************/ vlc_module_begin(); - set_description( _("Tarkin decoder module") ); + set_description( N_("Tarkin decoder module") ); set_capability( "decoder", 100 ); set_category( CAT_INPUT ); set_subcategory( SUBCAT_INPUT_VCODEC ); @@ -96,10 +101,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_EGENERIC; - } + return VLC_ENOMEM; /* Set output properties */ p_dec->fmt_out.i_cat = VIDEO_ES; @@ -160,7 +162,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) if( tarkin_synthesis_headerin( &p_sys->ti, &p_sys->tc, &oggpacket ) < 0 ) { - msg_Err( p_dec, "This bitstream does not contain Tarkin " + msg_Err( p_dec, "this bitstream does not contain Tarkin " "video data."); block_Release( p_block ); return NULL; @@ -310,7 +312,7 @@ static void tarkin_CopyPicture( decoder_t *p_dec, picture_t *p_pic, for( i_line = 0; i_line < p_pic->p[i_plane].i_visible_lines; i_line++ ) { - p_dec->p_vlc->pf_memcpy( p_dst, p_src, i_src_stride ); + vlc_memcpy( p_dst, p_src, i_src_stride ); p_src += i_src_stride; p_dst += i_dst_stride;