Statistics
| Branch: | Revision:

ffmpeg / libavcodec / wmadec.c @ b5ec6383

History | View | Annotate | Download (30.8 KB)

# Date Author Comment
b5ec6383 01/28/2011 12:21 AM Justin Ruggles

cosmetics: indentation and spacing

9d06d7bc 01/28/2011 12:07 AM Justin Ruggles

Remove the add bias hack for the C version of DSPContext.float_to_int16_*().

d36beb3f 01/26/2011 04:08 PM Diego Elio Pettenò

Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.

None of these symbols should be accessed directly, so declare them as
hidden.

Signed-off-by: Mans Rullgard <>

5d6e4c16 11/12/2010 11:04 AM Stefano Sabatini

Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
SampleFormat with AVSampleFormat.

Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk

c7310b7b 07/07/2010 10:24 AM Eli Friedman

Silence warning "new qualifiers in middle of multi-level
non-const cast are unsafe".

Patch by Eli Friedman, eli d friedman a gmail

Originally committed as revision 24080 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba87f080 04/20/2010 02:45 PM Diego Biurrun

Remove explicit filename from Doxygen @file commands.

Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.

Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk

2cbc1ec6 03/09/2010 11:37 PM Carl Eugen Hoyos

Fix indentation after r22414.

Originally committed as revision 22415 to svn://svn.ffmpeg.org/ffmpeg/trunk

d00261a3 03/09/2010 11:35 PM Zhou Zongyi

SIMD optimization using float_to_int16_interleave.

Patch by Zhou Zongyi, zhouzy A os D pku D edu D cn

Originally committed as revision 22414 to svn://svn.ffmpeg.org/ffmpeg/trunk

3a201bd0 02/19/2010 08:42 PM Stefan Gehrer

remove a Huffman table from WMA which also exists in AAC

Originally committed as revision 21902 to svn://svn.ffmpeg.org/ffmpeg/trunk

f28f1464 01/30/2010 09:55 PM Michael Niedermayer

Flush the bitreservour.
Fixes issue1716

Originally committed as revision 21559 to svn://svn.ffmpeg.org/ffmpeg/trunk

445a9dee 12/07/2009 12:35 AM Michael Niedermayer

Print error messages on errors.

Originally committed as revision 20757 to svn://svn.ffmpeg.org/ffmpeg/trunk

f78501b2 12/06/2009 11:51 PM Michael Niedermayer

Fix apparent 10l typos introduced in r8627.
These typos moved the exponent pointer too far ahead.
Fixes issue1055.

Originally committed as revision 20756 to svn://svn.ffmpeg.org/ffmpeg/trunk

8b4a6d47 11/24/2009 10:10 AM Måns Rullgård

WMA: extend exponent range to 95

Hopefully this will be enough. Fixes issue 1565 (again).

Originally committed as revision 20598 to svn://svn.ffmpeg.org/ffmpeg/trunk

168f92ff 11/23/2009 10:22 PM Måns Rullgård

WMA: extend exponent table up to 75

Fixes issue 1565.

Originally committed as revision 20593 to svn://svn.ffmpeg.org/ffmpeg/trunk

0e71841b 09/29/2009 12:48 PM Måns Rullgård

WMA: fix loop unrolling in decode_exp_vlc()

The count can be a non-multiple of 4 after all.

Originally committed as revision 20081 to svn://svn.ffmpeg.org/ffmpeg/trunk

ff00b94e 09/29/2009 10:38 AM Måns Rullgård

WMA: use type punning and unroll loops in decode_exp_vlc()

GCC does stupid things if these assignments are done using floats
directly, so fill the runs using integer operations instead. Also
unroll the loops since the length is always a multiple of 4.

Originally committed as revision 20077 to svn://svn.ffmpeg.org/ffmpeg/trunk

c0d1463d 09/29/2009 10:38 AM Måns Rullgård

WMA: use a table instead of pow() in decode_exp_vlc

Originally committed as revision 20076 to svn://svn.ffmpeg.org/ffmpeg/trunk

952e8721 09/27/2009 04:51 PM Måns Rullgård

Drop unused args from vector_fmul_add_add, simpify code, and rename

The src3 and step arguments to vector_fmul_add_add() are always zero
and one, respectively. This removes these arguments from the function,
simplifies the code accordingly, and renames the function to better...

0a07e9d0 09/26/2009 07:23 PM Måns Rullgård

WMA: remove some unused variables

Originally committed as revision 20030 to svn://svn.ffmpeg.org/ffmpeg/trunk

75bbed51 09/23/2009 12:29 PM Diego Biurrun

Remove unused variables, fixes the warnings:
libavcodec/wmadec.c:629: warning: unused variable `i'
libavcodec/wmadec.c:628: warning: unused variable `b'
libavcodec/wmadec.c:628: warning: unused variable `a'

Originally committed as revision 19994 to svn://svn.ffmpeg.org/ffmpeg/trunk

6044538b 09/23/2009 10:33 AM Måns Rullgård

WMA: use DSPContext.butterflies_float

Originally committed as revision 19981 to svn://svn.ffmpeg.org/ffmpeg/trunk

9970c61b 06/20/2009 09:05 AM Sascha Sommer

Introduce WMACoef typedef for decoded coefficients
and change default type to float so that the run level
decoding functionality can be shared with wmapro

Originally committed as revision 19231 to svn://svn.ffmpeg.org/ffmpeg/trunk

c0e9b2e8 06/12/2009 04:00 PM Sascha Sommer

Move run level decode functionality to ff_wma_run_level_decode
so that it can be reused for wmapro

Originally committed as revision 19171 to svn://svn.ffmpeg.org/ffmpeg/trunk

7d485f16 05/16/2009 02:17 PM Siarhei Siamashka

Support for getting (i)MDCT output multiplied by a constant scaling factor.

Scaling (i)MDCT output has no runtime overhead and can be used to improve
performance of audio codecs. All the changes are only needed in
'ff_mdct_init' function and slow down initialization a bit....

110baa2e 04/17/2009 03:35 PM Michael Niedermayer

Remove unused variable from wma_decode_block() found by CSA.

Originally committed as revision 18568 to svn://svn.ffmpeg.org/ffmpeg/trunk

7a00bbad 04/07/2009 03:59 PM Thilo Borgmann

Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames....

bad5537e 02/01/2009 02:00 AM Diego Biurrun

Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.

Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk

406792e7 01/19/2009 03:46 PM Diego Biurrun

cosmetics: Remove pointless period after copyright statement non-sentences.

Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk

29ca668f 08/28/2008 12:46 AM Michael Niedermayer

Fix mid/side stereo buggy output zeroing, fixes issue264 part 2.

Originally committed as revision 15004 to svn://svn.ffmpeg.org/ffmpeg/trunk

d46ac5bf 08/12/2008 12:38 AM Loren Merritt

mdct wrapper function to match fft

Originally committed as revision 14703 to svn://svn.ffmpeg.org/ffmpeg/trunk

0a570e82 08/12/2008 12:36 AM Loren Merritt

remove mdct tmp buffer

Originally committed as revision 14702 to svn://svn.ffmpeg.org/ffmpeg/trunk

fd76c37f 07/31/2008 10:47 AM Peter Ross

Modify all codecs to report their supported input and output sample format(s).

Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk

4972a246 07/11/2008 07:54 PM Michael Niedermayer

indent

Originally committed as revision 14172 to svn://svn.ffmpeg.org/ffmpeg/trunk

7ee18c17 07/11/2008 07:51 PM Michael Niedermayer

Fix not coded channels / silence decoding.
Fixes issue264 WMV audio stutter

Originally committed as revision 14171 to svn://svn.ffmpeg.org/ffmpeg/trunk

362aba4b 07/11/2008 07:45 PM Michael Niedermayer

Check that we have enough output space available.

Originally committed as revision 14170 to svn://svn.ffmpeg.org/ffmpeg/trunk

fe4bf374 06/12/2008 09:50 PM Stefano Sabatini

Make AVCodec long_names definition conditional depending on CONFIG_SMALL.

Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk

d5202e4f 04/27/2008 10:52 AM Stefano Sabatini

Add long names to many AVCodec declarations.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 13005 to svn://svn.ffmpeg.org/ffmpeg/trunk

74dc7448 02/01/2008 04:14 PM Michael Niedermayer

const

Originally committed as revision 11790 to svn://svn.ffmpeg.org/ffmpeg/trunk

4c1e509c 11/30/2007 09:51 PM Reimar Döffinger

wma_decode_superframe always returns s->block_align, so make
sure we actually consume exactly that amount.
Fixes sound artefacts (mostly blips) that mysteriously disappeared
after e.g. remuxing with mencoder.

Originally committed as revision 11115 to svn://svn.ffmpeg.org/ffmpeg/trunk

295f3737 08/11/2007 11:17 PM Aurelien Jacobs

various simplifications around recent av_clip_int16() usage

Originally committed as revision 10080 to svn://svn.ffmpeg.org/ffmpeg/trunk

aee481ce 08/11/2007 10:48 PM Aurelien Jacobs

use av_clip_int16() where it makes sense

Originally committed as revision 10078 to svn://svn.ffmpeg.org/ffmpeg/trunk

7ae7300e 08/09/2007 12:57 AM Alex Beregszaszi

use skip_bits where appropriate

Originally committed as revision 10004 to svn://svn.ffmpeg.org/ffmpeg/trunk

7f95d9f6 08/09/2007 12:54 AM Alex Beregszaszi

fix compilation with TRACE enabled

Originally committed as revision 10003 to svn://svn.ffmpeg.org/ffmpeg/trunk

5fc32c27 08/09/2007 12:13 AM Alex Beregszaszi

use get_bits1(..) instead get_bits(.., 1)

Originally committed as revision 9999 to svn://svn.ffmpeg.org/ffmpeg/trunk

2c124cb6 06/02/2007 01:41 AM Ramiro Polla

Use AV_xx throughout libavcodec

Originally committed as revision 9169 to svn://svn.ffmpeg.org/ffmpeg/trunk

47b777ce 05/30/2007 11:06 PM Michael Niedermayer

sanity checks (should prevent hypothetical div by zero issue)
should fix sf bug #1547313

Originally committed as revision 9164 to svn://svn.ffmpeg.org/ffmpeg/trunk

5bd526d9 04/04/2007 01:49 PM Ian Braithwaite

WMA decoder improvement, output closer to the dmo binary.
Patch by Ian Braithwaite ian braithwaite dot dk

[Ffmpeg-devel] WMA decoder improvement, 2007-03-28 15:50

Originally committed as revision 8627 to svn://svn.ffmpeg.org/ffmpeg/trunk

1890c2ac 03/26/2007 10:03 AM Ian Braithwaite

Optimize by building the mdct window and multipying/adding at the same time.

Patch by Ian Braithwaite ian .. braithwaite . dk

[Ffmpeg-devel] WMA decoder speedup 2007-03-22 22:56

Originally committed as revision 8526 to svn://svn.ffmpeg.org/ffmpeg/trunk

911b9faf 02/27/2007 09:54 AM Michel Bardiaux

Rename WMADecodeContext to WMACodecContext

Originally committed as revision 8143 to svn://svn.ffmpeg.org/ffmpeg/trunk

a9c9a240 02/27/2007 09:39 AM Michel Bardiaux

Supply context to tprintf

Originally committed as revision 8142 to svn://svn.ffmpeg.org/ffmpeg/trunk

6836af52 02/07/2007 02:53 PM Michael Niedermayer

doxygenize

Originally committed as revision 7872 to svn://svn.ffmpeg.org/ffmpeg/trunk

e8ebd573 02/06/2007 09:12 PM Michael Niedermayer

kill debuging code

Originally committed as revision 7856 to svn://svn.ffmpeg.org/ffmpeg/trunk

59686073 02/06/2007 08:19 PM Michael Niedermayer

wma encoder

Originally committed as revision 7855 to svn://svn.ffmpeg.org/ffmpeg/trunk

e7a6d5f3 12/14/2006 05:50 PM Benjamin Larsson

Bug fix for crashes when SSE is used on unaligned arrays.
No measureable change in speed. This gave random crashes on Win32
and BeOS. The cause for this bug is that gcc doesn't align the
stackframe. Linux and glibc always ensure this to be true thus
this never affected Linux....

b78e7197 10/07/2006 03:30 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk

191e8ca7 09/27/2006 07:47 PM Måns Rullgård

fix some signedness warnings

Originally committed as revision 6355 to svn://svn.ffmpeg.org/ffmpeg/trunk

8faf5443 09/10/2006 03:36 PM Luca Barbato

Cleanup, from Emanuele Giaquinta <>

Originally committed as revision 6221 to svn://svn.ffmpeg.org/ffmpeg/trunk

b3701f5c 08/22/2006 04:23 PM Baptiste Coudurier

Alignment of the LT window, segfault fix patch by Baptiste Coudurier.

Originally committed as revision 6051 to svn://svn.ffmpeg.org/ffmpeg/trunk

9aee40d9 08/19/2006 08:46 AM Benjamin Larsson

SIMD vector optimizations. 3% faster overall decoding.

Originally committed as revision 6026 to svn://svn.ffmpeg.org/ffmpeg/trunk

bcfa3e58 08/08/2006 04:01 AM Loren Merritt

3dnow2 implementation of imdct.
6% faster vorbis and wma.

Originally committed as revision 5954 to svn://svn.ffmpeg.org/ffmpeg/trunk

0b52626e 06/27/2006 12:13 PM Reimar Döffinger

Do not read full byte when less than 8 bits are still to be read.
Does not make a difference with any of my samples, but current
code does not make much sense.

Originally committed as revision 5533 to svn://svn.ffmpeg.org/ffmpeg/trunk

a5ecd69e 06/27/2006 12:09 PM Reimar Döffinger

Ignore overrun in spectral RLE decoding, fixes
http://www.missouri.edu/~bah347/gprime/nintendothemesacappellax.wmv

Originally committed as revision 5532 to svn://svn.ffmpeg.org/ffmpeg/trunk

d30ba3bb 03/30/2006 02:58 PM Michael Niedermayer

reverting 1.31->1.33
fix coverity warning CID: 255 (uninitalized variable used to build tables which arent used, well there is a slight change of a FPU exception maybe ...)
(by michael)
Init simplification and 2% faster wma_decode_block on amd64 with tables use...

40c8602f 03/13/2006 11:29 PM Michael Niedermayer

fix coverity warning CID: 255 (uninitalized variable used to build tables which arent used, well there is a slight change of a FPU exception maybe ...)

Originally committed as revision 5162 to svn://svn.ffmpeg.org/ffmpeg/trunk

6f3dda93 03/08/2006 09:26 AM Benjamin Larsson

Init simplification and 2% faster wma_decode_block on amd64 with tables use
instead of pow().

Originally committed as revision 5126 to svn://svn.ffmpeg.org/ffmpeg/trunk

63a5b0b1 02/11/2006 07:39 PM Jindřich Makovička

- fix insufficient code length for exp_vlc
- move vlc tweaking parameters to one place

Originally committed as revision 4987 to svn://svn.ffmpeg.org/ffmpeg/trunk

68b51e58 02/05/2006 01:35 PM Steve L'Homme

MSVC-compatible _align8/_align16 declaration
patch by Steve Lhomme, steve .dot. lhomme .at. free .dot. fr

Originally committed as revision 4942 to svn://svn.ffmpeg.org/ffmpeg/trunk

5509bffa 01/12/2006 10:43 PM Diego Biurrun

Update licensing information: The FSF changed postal address.

Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk

52fa37f1 01/08/2006 05:09 PM Benjamin Larsson

get_vlc -> get_vlc2 transition.

Originally committed as revision 4827 to svn://svn.ffmpeg.org/ffmpeg/trunk

b6204677 12/27/2005 07:58 PM Reimar Döffinger

Fix wma2 audio decoder
Patch by Reimar Doeffinger

Originally committed as revision 4779 to svn://svn.ffmpeg.org/ffmpeg/trunk

115329f1 12/17/2005 06:14 PM Diego Biurrun

COSMETICS: Remove all trailing whitespace.

Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk

ff547a52 06/28/2005 02:56 PM Mark Weaver

WMA MAX_CODED_SUPERFRAME_SIZE too small patch by (Mark Weaver: mark-clist, npsl co uk)

Originally committed as revision 4407 to svn://svn.ffmpeg.org/ffmpeg/trunk

caa336b4 12/29/2004 05:50 PM Michael Niedermayer

common.c -> bitstream.c (and the single non bitstream func -> utils.c)
common.h -> common.h/bitstream.h

Originally committed as revision 3777 to svn://svn.ffmpeg.org/ffmpeg/trunk

073c2593 11/27/2004 06:10 PM Burkhard Plaum

Memory leak fix patch by (Burkhard Plaum <plaum >at< ipf.uni-stuttgart )dot( de>)

Originally committed as revision 3717 to svn://svn.ffmpeg.org/ffmpeg/trunk

b4396f36 08/19/2004 07:01 PM Diego Biurrun

k6 pop fix patch by (Diego Biurrun <diego at biurrun dot de>)

Originally committed as revision 3403 to svn://svn.ffmpeg.org/ffmpeg/trunk

ed0219a6 06/26/2004 10:35 AM Alex Beregszaszi

altivec workaround

Originally committed as revision 3259 to svn://svn.ffmpeg.org/ffmpeg/trunk

7e56cd92 04/24/2004 07:30 PM Mike Melanson

add the minimal documentation to make this decoder useful

Originally committed as revision 3059 to svn://svn.ffmpeg.org/ffmpeg/trunk

40a3105d 01/18/2004 09:57 PM Michael Niedermayer

segfault fix

Originally committed as revision 2714 to svn://svn.ffmpeg.org/ffmpeg/trunk

aef3c69d 07/04/2003 08:32 PM Alex Beregszaszi

moved frame_count to wmadeccontext

Originally committed as revision 2011 to svn://svn.ffmpeg.org/ffmpeg/trunk

f2899fb1 07/04/2003 08:26 PM Alex Beregszaszi

uniformization (now it uses the same trace functions as h264, defined in common.h)

Originally committed as revision 2010 to svn://svn.ffmpeg.org/ffmpeg/trunk

a9722aa6 06/10/2003 10:45 PM Fabrice Bellard

works with old gcc versions too

Originally committed as revision 1948 to svn://svn.ffmpeg.org/ffmpeg/trunk

983e3246 03/06/2003 11:32 AM Michael Niedermayer

per file doxy

Originally committed as revision 1634 to svn://svn.ffmpeg.org/ffmpeg/trunk

0c1a9eda 02/11/2003 04:35 PM Zdenek Kabelac
  • UINTX -> uintx_t INTX -> intx_t

Originally committed as revision 1578 to svn://svn.ffmpeg.org/ffmpeg/trunk

8e1e6f31 01/23/2003 11:03 PM Fabrice Bellard

use av_malloc() functions - added av_strdup and av_realloc()

Originally committed as revision 1505 to svn://svn.ffmpeg.org/ffmpeg/trunk

68f593b4 01/21/2003 05:34 PM Michael Niedermayer

GetBitContext.size is allways multiplied by 8 -> use size_in_bits to avoid useless *8 in a few inner loops

Originally committed as revision 1486 to svn://svn.ffmpeg.org/ffmpeg/trunk

b35a02d5 01/07/2003 05:46 PM Fabrice Bellard

align fixes for sse/altivec

Originally committed as revision 1414 to svn://svn.ffmpeg.org/ffmpeg/trunk

2f62e147 01/06/2003 10:47 PM Fabrice Bellard

oops : better error resilience - should fix most wma decoding problems

Originally committed as revision 1404 to svn://svn.ffmpeg.org/ffmpeg/trunk

f408fc67 10/31/2002 08:22 PM Zdenek Kabelac
  • avoid negative numbers as well

Originally committed as revision 1134 to svn://svn.ffmpeg.org/ffmpeg/trunk

dd3be2c9 10/31/2002 06:22 PM Nick Kurshev

10l

Originally committed as revision 1133 to svn://svn.ffmpeg.org/ffmpeg/trunk

b8e6ad84 10/31/2002 06:17 PM Nick Kurshev

reverse first hunk

Originally committed as revision 1132 to svn://svn.ffmpeg.org/ffmpeg/trunk

d08070e6 10/31/2002 06:08 PM Nick Kurshev

fixed debug compilation

Originally committed as revision 1131 to svn://svn.ffmpeg.org/ffmpeg/trunk

4707cb07 10/31/2002 12:07 AM Fabrice Bellard

fixed nb_block_sizes detection - fixed codec_id test (avctx->codec_id does not need to be initialized)

Originally committed as revision 1121 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc423886 10/29/2002 10:39 PM Fabrice Bellard

use lrintf to avoid double conversion

Originally committed as revision 1107 to svn://svn.ffmpeg.org/ffmpeg/trunk

ab253fe3 10/29/2002 10:27 PM Fabrice Bellard

avoid name clash - fixed again block size selection

Originally committed as revision 1105 to svn://svn.ffmpeg.org/ffmpeg/trunk

64c13389 10/28/2002 01:42 AM Fabrice Bellard

fixed block size selection

Originally committed as revision 1093 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc8d1857 10/28/2002 12:48 AM Fabrice Bellard

added wma decoder

Originally committed as revision 1090 to svn://svn.ffmpeg.org/ffmpeg/trunk