changeset 5863:ad587a64ef52 libavcodec

remove useless initialization to 0 of adx context
author aurel
date Thu, 01 Nov 2007 17:50:05 +0000
parents 8983530be918
children 0fc269ea2919
files adx.c
diffstat 1 files changed, 1 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/adx.c	Thu Nov 01 16:04:30 2007 +0000
+++ b/adx.c	Thu Nov 01 17:50:05 2007 +0000
@@ -176,7 +176,6 @@
     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 @@
 //    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 @@
     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 @@
     CODEC_TYPE_AUDIO,
     CODEC_ID_ADPCM_ADX,
     sizeof(ADXContext),
-    adx_decode_init,
+    NULL,
     NULL,
     NULL,
     adx_decode_frame,