Browse Source

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  ATRAC3+ decoder

Conflicts:
	Changelog
	configure
	libavcodec/atrac3plus.c
	libavcodec/atrac3plus.h
	libavcodec/atrac3plus_data.h
	libavcodec/atrac3plusdec.c
	libavcodec/atrac3plusdsp.c
	libavcodec/version.h

See: 2e1fb96af3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
268d931724
5 changed files with 9 additions and 2 deletions
  1. +1
    -0
      libavcodec/atrac3plus.c
  2. +1
    -1
      libavcodec/atrac3plus.h
  3. +5
    -0
      libavcodec/atrac3plusdec.c
  4. +1
    -0
      libavcodec/atrac3plusdsp.c
  5. +1
    -1
      libavcodec/version.h

+ 1
- 0
libavcodec/atrac3plus.c View File

@@ -247,6 +247,7 @@ static int num_coded_units(GetBitContext *gb, Atrac3pChanParams *chan,
*
* @param[in,out] ctx ptr to the channel unit context
* @param[in,out] chan ptr to the channel parameters
* @param[in] wtab_idx index of the table of weights
* @param[in] avctx ptr to the AVCodecContext
* @return result code: 0 = OK, otherwise - error code
*/


+ 1
- 1
libavcodec/atrac3plus.h View File

@@ -202,7 +202,7 @@ void ff_atrac3p_generate_tones(Atrac3pChanUnitCtx *ch_unit, AVFloatDSPContext *f
* @param[in] ch_index which channel to process
* @param[in,out] sp ptr to channel spectrum to process
* @param[in] rng_index indicates which RNG table to use
* @param[in] sb which subband to process
* @param[in] sb_num which subband to process
*/
void ff_atrac3p_power_compensation(Atrac3pChanUnitCtx *ctx, int ch_index,
float *sp, int rng_index, int sb_num);


+ 5
- 0
libavcodec/atrac3plusdec.c View File

@@ -135,6 +135,11 @@ static av_cold int atrac3p_decode_init(AVCodecContext *avctx)
ATRAC3PContext *ctx = avctx->priv_data;
int i, ch, ret;

if (!avctx->block_align) {
av_log(avctx, AV_LOG_ERROR, "block_align is not set\n");
return AVERROR(EINVAL);
}

ff_atrac3p_init_vlcs();

avpriv_float_dsp_init(&ctx->fdsp, avctx->flags & CODEC_FLAG_BITEXACT);


+ 1
- 0
libavcodec/atrac3plusdsp.c View File

@@ -116,6 +116,7 @@ av_cold void ff_atrac3p_init_wave_synth(void)
* @param[in] synth_param ptr to common synthesis parameters
* @param[in] waves_info parameters for each sine wave
* @param[in] envelope envelope data for all waves in a group
* @param[in] phase_shift flag indicates 180° phase shift
* @param[in] reg_offset region offset for trimming envelope data
* @param[out] out receives sythesized data
*/


+ 1
- 1
libavcodec/version.h View File

@@ -30,7 +30,7 @@

#define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR 47
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_MICRO 101

#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \


Loading…
Cancel
Save