From 6177c7efe1748f9d89def83c9e792a7fa23526e7 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 1 Nov 2007 17:50:05 +0000 Subject: remove useless initialization to 0 of adx context Originally committed as revision 10899 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/adx.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'libavcodec/adx.c') diff --git a/libavcodec/adx.c b/libavcodec/adx.c index 2b44b89f98..4b4165a7db 100644 --- a/libavcodec/adx.c +++ b/libavcodec/adx.c @@ -176,7 +176,6 @@ static int adx_encode_header(AVCodecContext *avctx,unsigned char *buf,size_t buf return 0x20+4; } -static int adx_decode_init(AVCodecContext *avctx); static int adx_encode_init(AVCodecContext *avctx) { if (avctx->channels > 2) @@ -189,7 +188,6 @@ static int adx_encode_init(AVCodecContext *avctx) // avctx->bit_rate = avctx->sample_rate*avctx->channels*18*8/32; av_log(avctx, AV_LOG_DEBUG, "adx encode init\n"); - adx_decode_init(avctx); return 0; } @@ -284,20 +282,6 @@ static int adx_decode_header(AVCodecContext *avctx,const unsigned char *buf,size return offset; } -static int adx_decode_init(AVCodecContext * avctx) -{ - ADXContext *c = avctx->priv_data; - -// printf("adx_decode_init\n"); fflush(stdout); - c->prev[0].s1 = 0; - c->prev[0].s2 = 0; - c->prev[1].s1 = 0; - c->prev[1].s2 = 0; - c->header_parsed = 0; - c->in_temp = 0; - return 0; -} - #if 0 static void dump(unsigned char *buf,size_t len) { @@ -391,7 +375,7 @@ AVCodec adpcm_adx_decoder = { CODEC_TYPE_AUDIO, CODEC_ID_ADPCM_ADX, sizeof(ADXContext), - adx_decode_init, + NULL, NULL, NULL, adx_decode_frame, -- cgit v1.2.3