| OLD | NEW |
| 1 /* | 1 /* |
| 2 * WMA compatible decoder | 2 * WMA compatible decoder |
| 3 * Copyright (c) 2002 The FFmpeg Project | 3 * Copyright (c) 2002 The FFmpeg Project |
| 4 * | 4 * |
| 5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
| 6 * | 6 * |
| 7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 for(i = 0; i < s->nb_block_sizes; i++) | 109 for(i = 0; i < s->nb_block_sizes; i++) |
| 110 ff_mdct_init(&s->mdct_ctx[i], s->frame_len_bits - i + 1, 1, 1.0); | 110 ff_mdct_init(&s->mdct_ctx[i], s->frame_len_bits - i + 1, 1, 1.0); |
| 111 | 111 |
| 112 if (s->use_noise_coding) { | 112 if (s->use_noise_coding) { |
| 113 init_vlc(&s->hgain_vlc, HGAINVLCBITS, sizeof(ff_wma_hgain_huffbits), | 113 init_vlc(&s->hgain_vlc, HGAINVLCBITS, sizeof(ff_wma_hgain_huffbits), |
| 114 ff_wma_hgain_huffbits, 1, 1, | 114 ff_wma_hgain_huffbits, 1, 1, |
| 115 ff_wma_hgain_huffcodes, 2, 2, 0); | 115 ff_wma_hgain_huffcodes, 2, 2, 0); |
| 116 } | 116 } |
| 117 | 117 |
| 118 if (s->use_exp_vlc) { | 118 if (s->use_exp_vlc) { |
| 119 init_vlc(&s->exp_vlc, EXPVLCBITS, sizeof(ff_wma_scale_huffbits), //FIXME
move out of context | 119 init_vlc(&s->exp_vlc, EXPVLCBITS, sizeof(ff_aac_scalefactor_bits), //FIX
ME move out of context |
| 120 ff_wma_scale_huffbits, 1, 1, | 120 ff_aac_scalefactor_bits, 1, 1, |
| 121 ff_wma_scale_huffcodes, 4, 4, 0); | 121 ff_aac_scalefactor_code, 4, 4, 0); |
| 122 } else { | 122 } else { |
| 123 wma_lsp_to_curve_init(s, s->frame_len); | 123 wma_lsp_to_curve_init(s, s->frame_len); |
| 124 } | 124 } |
| 125 | 125 |
| 126 avctx->sample_fmt = SAMPLE_FMT_S16; | 126 avctx->sample_fmt = SAMPLE_FMT_S16; |
| 127 return 0; | 127 return 0; |
| 128 } | 128 } |
| 129 | 129 |
| 130 /** | 130 /** |
| 131 * compute x^-0.25 with an exponent and mantissa table. We use linear | 131 * compute x^-0.25 with an exponent and mantissa table. We use linear |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 CODEC_TYPE_AUDIO, | 948 CODEC_TYPE_AUDIO, |
| 949 CODEC_ID_WMAV2, | 949 CODEC_ID_WMAV2, |
| 950 sizeof(WMACodecContext), | 950 sizeof(WMACodecContext), |
| 951 wma_decode_init, | 951 wma_decode_init, |
| 952 NULL, | 952 NULL, |
| 953 ff_wma_end, | 953 ff_wma_end, |
| 954 wma_decode_superframe, | 954 wma_decode_superframe, |
| 955 .flush=flush, | 955 .flush=flush, |
| 956 .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), | 956 .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), |
| 957 }; | 957 }; |
| OLD | NEW |