comparison mpc7.c @ 6350:8e63d869a904 libavcodec

typo fix: inited --> initialized
author diego
date Wed, 13 Feb 2008 09:26:10 +0000
parents 67986191913d
children 48759bfbd073
comparison
equal deleted inserted replaced
6349:aed237dd11d8 6350:8e63d869a904
48 { 48 {
49 int i, j; 49 int i, j;
50 MPCContext *c = avctx->priv_data; 50 MPCContext *c = avctx->priv_data;
51 GetBitContext gb; 51 GetBitContext gb;
52 uint8_t buf[16]; 52 uint8_t buf[16];
53 static int vlc_inited = 0; 53 static int vlc_initialized = 0;
54 54
55 if(avctx->extradata_size < 16){ 55 if(avctx->extradata_size < 16){
56 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size); 56 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size);
57 return -1; 57 return -1;
58 } 58 }
75 c->lastframelen = get_bits(&gb, 11); 75 c->lastframelen = get_bits(&gb, 11);
76 av_log(avctx, AV_LOG_DEBUG, "IS: %d, MSS: %d, TG: %d, LFL: %d, bands: %d\n", 76 av_log(avctx, AV_LOG_DEBUG, "IS: %d, MSS: %d, TG: %d, LFL: %d, bands: %d\n",
77 c->IS, c->MSS, c->gapless, c->lastframelen, c->maxbands); 77 c->IS, c->MSS, c->gapless, c->lastframelen, c->maxbands);
78 c->frames_to_skip = 0; 78 c->frames_to_skip = 0;
79 79
80 if(vlc_inited) return 0; 80 if(vlc_initialized) return 0;
81 av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n"); 81 av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n");
82 if(init_vlc(&scfi_vlc, MPC7_SCFI_BITS, MPC7_SCFI_SIZE, 82 if(init_vlc(&scfi_vlc, MPC7_SCFI_BITS, MPC7_SCFI_SIZE,
83 &mpc7_scfi[1], 2, 1, 83 &mpc7_scfi[1], 2, 1,
84 &mpc7_scfi[0], 2, 1, INIT_VLC_USE_STATIC)){ 84 &mpc7_scfi[0], 2, 1, INIT_VLC_USE_STATIC)){
85 av_log(avctx, AV_LOG_ERROR, "Cannot init SCFI VLC\n"); 85 av_log(avctx, AV_LOG_ERROR, "Cannot init SCFI VLC\n");
105 av_log(avctx, AV_LOG_ERROR, "Cannot init QUANT VLC %i,%i\n",i,j); 105 av_log(avctx, AV_LOG_ERROR, "Cannot init QUANT VLC %i,%i\n",i,j);
106 return -1; 106 return -1;
107 } 107 }
108 } 108 }
109 } 109 }
110 vlc_inited = 1; 110 vlc_initialized = 1;
111 return 0; 111 return 0;
112 } 112 }
113 113
114 /** 114 /**
115 * Fill samples for given subband 115 * Fill samples for given subband