* all: only include header that are needed (and no more stdlib.h, string.h

as vlc/vlc.h include them).
This commit is contained in:
Laurent Aimar 2003-11-22 23:39:14 +00:00
parent 192c809130
commit 61f6d450b1
28 changed files with 40 additions and 139 deletions

View File

@ -2,7 +2,7 @@
* a52.c: parse A/52 audio sync info and packetize the stream
*****************************************************************************
* Copyright (C) 2001-2002 VideoLAN
* $Id: a52.c,v 1.30 2003/11/16 22:54:12 gbazin Exp $
* $Id: a52.c,v 1.31 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Stéphane Borel <stef@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
@ -26,13 +26,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h> /* memcpy() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include "vlc_block_helper.h"

View File

@ -2,7 +2,7 @@
* adpcm.c : adpcm variant audio decoder
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: adpcm.c,v 1.16 2003/11/16 21:07:30 gbazin Exp $
* $Id: adpcm.c,v 1.17 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
@ -26,13 +26,8 @@
*
* Documentation: http://www.pcisys.net/~melanson/codecs/adpcm.txt
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include "codecs.h"
/*****************************************************************************
* Module descriptor

View File

@ -2,7 +2,7 @@
* araw.c: Pseudo audio decoder; for raw pcm data
*****************************************************************************
* Copyright (C) 2001, 2003 VideoLAN
* $Id: araw.c,v 1.24 2003/11/16 21:07:30 gbazin Exp $
* $Id: araw.c,v 1.25 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
@ -24,13 +24,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include "codecs.h"
/*****************************************************************************
* Module descriptor

View File

@ -2,7 +2,7 @@
* cinepak.c: cinepak video decoder
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: cinepak.c,v 1.3 2003/11/16 21:07:30 gbazin Exp $
* $Id: cinepak.c,v 1.4 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
@ -24,13 +24,9 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#define CINEPAK_MAXSTRIP 32

View File

@ -2,7 +2,7 @@
* dts.c: parse DTS audio sync info and packetize the stream
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: dts.c,v 1.6 2003/11/16 22:54:12 gbazin Exp $
* $Id: dts.c,v 1.7 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Gildas Bazin <gbazin@netcourrier.com>
@ -25,13 +25,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h> /* memcpy() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include "vlc_block_helper.h"

View File

@ -2,7 +2,7 @@
* dvbsub.c : DVB subtitles decoder thread
*****************************************************************************
* Copyright (C) 2003 ANEVIA
* $Id: dvbsub.c,v 1.3 2003/11/16 21:07:30 gbazin Exp $
* $Id: dvbsub.c,v 1.4 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Damien LUCAS <damien.lucas@anevia.com>
*
@ -23,13 +23,11 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* memcpy(), memset() */
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/decoder.h>
#include "codecs.h"
#include "codecs.h"
// Wow, that's ugly but very usefull for a memory leak track
// so I just keep it

View File

@ -2,7 +2,7 @@
* decoder.c: AAC decoder using libfaad2
*****************************************************************************
* Copyright (C) 2001, 2003 VideoLAN
* $Id: faad.c,v 1.4 2003/11/16 21:07:30 gbazin Exp $
* $Id: faad.c,v 1.5 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
@ -21,25 +21,22 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include <vlc/aout.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <faad.h>
#include "codecs.h"
/*****************************************************************************
* Module descriptor
*****************************************************************************/
static int Open( vlc_object_t * );
static void CloseDecoder( vlc_object_t * );
static void Close( vlc_object_t * );
vlc_module_begin();
set_description( _("AAC audio decoder (using libfaad2)") );
set_capability( "decoder", 60 );
set_callbacks( Open, CloseDecoder );
set_callbacks( Open, Close );
vlc_module_end();
@ -301,9 +298,9 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
/*****************************************************************************
* CloseDecoder:
* Close:
*****************************************************************************/
static void CloseDecoder( vlc_object_t *p_this )
static void Close( vlc_object_t *p_this )
{
decoder_t *p_dec = (decoder_t *)p_this;
decoder_sys_t *p_sys = p_dec->p_sys;

View File

@ -2,7 +2,7 @@
* audio.c: audio decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2003 VideoLAN
* $Id: audio.c,v 1.24 2003/11/19 13:10:48 gbazin Exp $
* $Id: audio.c,v 1.25 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
@ -25,15 +25,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include "codecs.h"
#include "aout_internal.h"
/* ffmpeg header */
#ifdef HAVE_FFMPEG_AVCODEC_H

View File

@ -2,7 +2,7 @@
* chroma.c: chroma conversion using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: chroma.c,v 1.3 2003/10/27 01:04:38 gbazin Exp $
* $Id: chroma.c,v 1.4 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -24,8 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
#include <vlc/vout.h>

View File

@ -2,7 +2,7 @@
* encoder.c: video and audio encoder using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: encoder.c,v 1.7 2003/11/16 21:07:31 gbazin Exp $
* $Id: encoder.c,v 1.8 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
@ -25,17 +25,10 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/aout.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <vlc/sout.h>
#include "aout_internal.h"
/* ffmpeg header */
#ifdef HAVE_FFMPEG_AVCODEC_H

View File

@ -2,7 +2,7 @@
* ffmpeg.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: ffmpeg.c,v 1.59 2003/11/16 21:07:31 gbazin Exp $
* $Id: ffmpeg.c,v 1.60 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
@ -25,12 +25,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
/* ffmpeg header */
#ifdef HAVE_FFMPEG_AVCODEC_H

View File

@ -2,7 +2,7 @@
* postprocess.c: video postprocessing using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: postprocess.c,v 1.2 2003/10/28 14:17:51 gbazin Exp $
* $Id: postprocess.c,v 1.3 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
@ -21,8 +21,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc/vout.h>

View File

@ -2,7 +2,7 @@
* video.c: video decoder using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.47 2003/11/19 13:10:48 gbazin Exp $
* $Id: video.c,v 1.48 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
@ -25,12 +25,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
/* ffmpeg header */
#ifdef HAVE_FFMPEG_AVCODEC_H

View File

@ -2,7 +2,7 @@
* flac.c: flac decoder/packetizer/encoder module making use of libflac
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: flac.c,v 1.4 2003/11/22 12:41:32 gbazin Exp $
* $Id: flac.c,v 1.5 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Sigmund Augdal <sigmunau@idi.ntnu.no>
@ -25,9 +25,9 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <FLAC/stream_decoder.h>
#include <FLAC/stream_encoder.h>

View File

@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: libmpeg2.c,v 1.33 2003/11/16 21:07:30 gbazin Exp $
* $Id: libmpeg2.c,v 1.34 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Christophe Massiot <massiot@via.ecp.fr>
@ -27,12 +27,8 @@
*****************************************************************************/
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/input.h>
#include <vlc/decoder.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* memcpy(), memset() */
#include <mpeg2dec/mpeg2.h>
#include "vout_synchro.h"

View File

@ -2,7 +2,7 @@
* lpcm.c: lpcm decoder/packetizer module
*****************************************************************************
* Copyright (C) 1999-2003 VideoLAN
* $Id: lpcm.c,v 1.19 2003/11/22 18:04:10 gbazin Exp $
* $Id: lpcm.c,v 1.20 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Henri Fallon <henri@videolan.org>

View File

@ -2,7 +2,7 @@
* mpeg_audio.c: parse MPEG audio sync info and packetize the stream
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: mpeg_audio.c,v 1.23 2003/11/16 22:54:12 gbazin Exp $
* $Id: mpeg_audio.c,v 1.24 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
@ -27,14 +27,9 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* strdup() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <vlc/aout.h>
#include <vlc/sout.h>
#include "vlc_block_helper.h"

View File

@ -2,7 +2,7 @@
* quicktime.c: a quicktime decoder that uses the QT library/dll
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: quicktime.c,v 1.14 2003/10/01 20:57:34 hartman Exp $
* $Id: quicktime.c,v 1.15 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir at via.ecp.fr>
* Derk-Jan Hartman <thedj at users.sf.net>
@ -25,14 +25,12 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <vlc/vlc.h>
#include <vlc/aout.h>
#include <vlc/vout.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* strdup() */
#include "codecs.h"
#ifdef SYS_DARWIN

View File

@ -2,7 +2,7 @@
* rawvideo.c: Pseudo video decoder/packetizer for raw video data
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: rawvideo.c,v 1.8 2003/11/16 21:07:30 gbazin Exp $
* $Id: rawvideo.c,v 1.9 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
@ -24,14 +24,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* strdup() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include "codecs.h"
/*****************************************************************************
* decoder_sys_t : raw video decoder descriptor

View File

@ -2,7 +2,7 @@
* speex.c: speex decoder/packetizer module making use of libspeex.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: speex.c,v 1.3 2003/11/16 21:07:30 gbazin Exp $
* $Id: speex.c,v 1.4 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -24,12 +24,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* memcpy(), memset() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <ogg/ogg.h>
#include <speex.h>

View File

@ -2,7 +2,7 @@
* parse.c: SPU parser
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: parse.c,v 1.14 2003/11/22 19:55:47 fenrir Exp $
* $Id: parse.c,v 1.15 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Laurent Aimar <fenrir@via.ecp.fr>
@ -25,12 +25,9 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include "spudec.h"

View File

@ -2,7 +2,7 @@
* render.c : SPU renderer
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: render.c,v 1.7 2003/11/22 19:55:47 fenrir Exp $
* $Id: render.c,v 1.8 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Rudolf Cornelissen <rag.cornelissen@inter.nl.net>
@ -26,8 +26,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/decoder.h>

View File

@ -2,7 +2,7 @@
* spudec.c : SPU decoder thread
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: spudec.c,v 1.29 2003/11/22 20:15:34 fenrir Exp $
* $Id: spudec.c,v 1.30 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Laurent Aimar <fenrir@via.ecp.fr>
@ -25,12 +25,9 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include "spudec.h"

View File

@ -2,7 +2,7 @@
* subsdec.c : text subtitles decoder
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: subsdec.c,v 1.10 2003/11/19 13:25:48 hartman Exp $
* $Id: subsdec.c,v 1.11 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Samuel Hocevar <sam@zoy.org>
@ -25,14 +25,11 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* memcpy(), memset() */
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/decoder.h>
#include <osd.h>
#include <codecs.h>
#if defined(HAVE_ICONV)
#include <iconv.h>

View File

@ -2,7 +2,7 @@
* tarkin.c: tarkin decoder module making use of libtarkin.
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: tarkin.c,v 1.8 2003/11/22 15:06:50 gbazin Exp $
* $Id: tarkin.c,v 1.9 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -25,7 +25,6 @@
* Preamble
*****************************************************************************/
#include <vlc/vlc.h>
#include <vlc/input.h>
#include <vlc/decoder.h>
#include <ogg/ogg.h>

View File

@ -2,7 +2,7 @@
* theora.c: theora decoder module making use of libtheora.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: theora.c,v 1.14 2003/11/16 21:07:30 gbazin Exp $
* $Id: theora.c,v 1.15 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -24,12 +24,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* memcpy(), memset() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <ogg/ogg.h>

View File

@ -2,7 +2,7 @@
* vorbis.c: vorbis decoder/encoder/packetizer module making use of libvorbis.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: vorbis.c,v 1.23 2003/11/16 22:54:12 gbazin Exp $
* $Id: vorbis.c,v 1.24 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -24,12 +24,8 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* memcpy(), memset() */
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <ogg/ogg.h>

View File

@ -2,7 +2,7 @@
* xvid.c: a decoder for libxvidcore, the Xvid video codec
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: xvid.c,v 1.7 2003/11/16 21:07:30 gbazin Exp $
* $Id: xvid.c,v 1.8 2003/11/22 23:39:14 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -26,11 +26,8 @@
*****************************************************************************/
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/input.h>
#include <vlc/decoder.h>
#include <stdlib.h>
#include "codecs.h"
#include <xvid.h>