Statistics
| Branch: | Revision:

ffmpeg / libavcodec / mpegaudiodec.c @ cf92cec7

History | View | Annotate | Download (77.9 KB)

# Date Author Comment
cf92cec7 01/23/2009 12:09 PM Andreas Öman

Avoid allocating MPADecodeContext on stack.

Instead move relevant fields into MPADecodeHeader and use it
where appropriate.

Originally committed as revision 16728 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

49cdad8d 01/14/2009 09:41 PM Aurelien Jacobs

simplify: group all the AUDIO_NONSHORT parameters in the same place

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

0f6a659d 01/14/2009 07:57 AM Diego Biurrun

Replace #ifdef CONFIG_ preprocessor check by #if CONFIG_.
CONFIG_ changed semantics and is always defined now.

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

ad1eebe3 01/14/2009 12:48 AM Diego Biurrun

Use CONFIG_MPEGAUDIO_HP directly instead of USE_HIGHPRECISION indirection.

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

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

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

cb595b7f 01/13/2009 07:32 PM Michael Niedermayer

Add dummy mp1_decoder to complement the existing dummy mp2/mp3 decoders.

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

11c23b64 12/22/2008 10:39 PM Andreas Öman

Revert r16257:

Include "libavutil/common.h" where we use llrint() in case ffmpeg's
own llrint() is to be used.

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

1af34f09 12/21/2008 09:53 PM Andreas Öman

Include "libavutil/common.h" where we use llrint() in case ffmpeg's
own llrint() is to be used.

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

4deaa946 11/24/2008 09:28 AM Måns Rullgård

Add shift argument to MULL macro

This replaces use of FRAC_BITS in the MULL definition with a third
argument specifying the shift amount. All uses of this macro are
updated to pass FRAC_BITS as third argument.

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

37d3e066 10/21/2008 09:40 PM Aurelien Jacobs

uses FF_ARRAY_ELEMS() where appropriate

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

1d4113d0 09/16/2008 01:49 AM Michael Niedermayer

Only print "invalid new backstep" when it is really invalid.
Fixes issue541.

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

bf3a971c 09/16/2008 12:31 AM Michael Niedermayer

Make decoder more robust by default against broken encoders.
Fixes issue540.

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

047599a4 09/08/2008 06:18 PM Michael Niedermayer

Rename error_resilience to error_recognition.

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

969c163f 08/31/2008 08:26 PM Michael Niedermayer

Remove debuging junk that probably hasnt been used by anyone since years.

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

bbdf8728 07/31/2008 12:09 PM Art Clarke

Use static vlc structure to decode layer 3 huffman tables.
Patch by Art Clarke aclarke vlideshow com

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

b000c604 07/20/2008 03:01 PM Andreas Öman

Decrease severity of 'invalid new backstep' log message to warning
in mpeg audio decoder.

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

11f63a22 07/20/2008 02:58 PM Andreas Öman

Supply context argument to av_log() in mpeg audio decoder.

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

9ea583e1 07/13/2008 12:23 PM Måns Rullgård

mpegaudio: use MAC/MLS macros in ff_mpa_synth_filter

Originally committed as revision 14199 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

162d4fc9 04/27/2008 10:39 PM Stefano Sabatini

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

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

169203c1 04/26/2008 02:41 PM Baptiste Coudurier

break if error in header so it can output already decoded frames

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

41b8800f 04/26/2008 02:36 PM Baptiste Coudurier

merge init with declaration

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

f91c0898 04/26/2008 02:34 PM Baptiste Coudurier

cosmetics: merge decls

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

5fd7a9fc 04/26/2008 02:33 PM Baptiste Coudurier

simplify: merge loops

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

8da8970d 04/26/2008 02:30 PM Baptiste Coudurier

simplify

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

0d5b2eb4 04/26/2008 02:28 PM Baptiste Coudurier

simplify: remove useless fields and vars

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

676e26ab 04/26/2008 02:22 PM Baptiste Coudurier

move MP3On4DecodeContext def near the code and under ifdef

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

9f95bfe2 04/26/2008 02:18 PM Baptiste Coudurier

correctly patch syncword for samples rates < 16000, decoder now fully support all iso ref files

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

f0f53c83 04/26/2008 02:10 PM Baptiste Coudurier

fix 1 frame config decoding

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

60dfa0b8 04/26/2008 02:08 PM Baptiste Coudurier

remove old draft last case not present anymore in iso specs

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

b61d2782 04/26/2008 01:56 PM Baptiste Coudurier

use mpeg4audio common code

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

ec39f7d8 04/26/2008 01:08 PM Baptiste Coudurier

simplify

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

9708d52e 04/26/2008 01:03 PM Baptiste Coudurier

correctly compute out_size and samples number

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

cd328965 04/26/2008 12:59 PM Baptiste Coudurier

fsize is 12 bits according to specs

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

5be25fc1 04/26/2008 12:51 PM Baptiste Coudurier

simplify using FFMIN3

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

a82dcdff 04/26/2008 12:39 PM Baptiste Coudurier

return error if buf_size is too small

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

dfcd6d91 04/26/2008 12:34 PM Baptiste Coudurier

values can fit uint8_t

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

183fceaa 04/26/2008 12:33 PM Baptiste Coudurier

add const

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

6122b733 03/20/2008 09:38 AM Baptiste Coudurier

omg, fix compilation

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

d0ed455f 03/20/2008 09:36 AM Baptiste Coudurier

correctly set avctx->frame_size for mp3on4 and mp3adu

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

5e534865 02/13/2008 09:26 AM Diego Biurrun

typo fix: inited --> initialized

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

7993df65 02/01/2008 03:26 AM Michael Niedermayer

consts
I have underestimated this a little, and these are just some ...

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

9f7458b2 01/11/2008 09:34 PM Michael Niedermayer

Factorize some code into functions, had this in my tree and will be
needed for mp3 encoding.

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

812f29ff 01/11/2008 06:20 PM Brian Brice

Clear synth_buf on flush(). Part of a patch by Brian Brice bbrice gmail com.

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

4a69055b 01/11/2008 06:18 PM Brian Brice

Flush mp2 as well on seeking. Part of a patch by Brian Brice bbrice gmail com.

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

3240941b 11/08/2007 10:53 AM Martin Lindhe

Move 2 defines from mpegaudiodec.c to mpegaudiodata.h to allow compilation
when DEBUG is defined.
Patch by Martin Lindhe: martin startwars org

Originally committed as revision 10955 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

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

c2d08dc0 06/16/2007 10:58 PM Måns Rullgård

move a couple of macros and structs to mpegaudio.h

Originally committed as revision 9343 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

d5aa01cd 05/27/2007 10:34 PM Michael Niedermayer

make decoder decode the first frame properly if theres more than just one
frame input

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

08aa2c9b 05/20/2007 10:50 PM Aurelien Jacobs

remove dependency of mpeg audio encoder over mpeg audio decoder

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

ca6e50af 05/20/2007 03:11 PM Aurelien Jacobs

add a ff_ prefix to some mpegaudio funcs

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

4bd8e17c 05/20/2007 01:40 PM Aurelien Jacobs

loosen dependencies over mpegaudiodec

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

677fe2e2 05/19/2007 12:13 AM Aurelien Jacobs

add proper prefix to extern mpeg audio data tables

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

4991c051 05/19/2007 12:06 AM Aurelien Jacobs

move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c

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

c6bcbb2c 05/15/2007 08:47 PM Reimar Döffinger

Use DECLARE_ALIGNED to ease porting

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

5a6a6cc7 05/05/2007 12:18 PM Diego Biurrun

Fix multiple "‘inline/static’ is not at beginning of declaration" warnings.

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

fe037229 04/07/2007 02:10 PM Diego Biurrun

typos

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

9608652d 03/14/2007 12:19 AM Michael Niedermayer

kill another 2 av_mallocz_static()

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

318c5e05 03/12/2007 12:36 PM Michel Bardiaux

Give context to dprintf

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

5773d460 02/03/2007 01:15 PM Michael Niedermayer

factorize switch_buffer()

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

e0cf9204 02/03/2007 12:42 PM Michael Niedermayer

fix decoding of takethat.mp3

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

2f5560ee 12/11/2006 01:01 PM Michael Niedermayer

fix playback of mp3_bits_left.avi

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

8da9266c 12/06/2006 11:46 PM Måns Rullgård

use the standard INT64_C() macro for 64-bit constants

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

8e5606bf 11/15/2006 05:58 PM Michael Niedermayer

detect a few more errors (fixes libmp3-bug.avi again)
make pickyness of the decoder user selectable through error_resilience param like for video decoders

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

ee50a7c1 11/14/2006 10:06 PM Michael Niedermayer

making decoding more error robust

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

9bb328d3 11/14/2006 08:39 PM Michael Niedermayer

reset internal buffer during seeking

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

bd60e11b 11/14/2006 08:35 PM Michael Niedermayer

more checks and error messages

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

498c544a 10/30/2006 02:19 AM Michael Niedermayer

dont set the sampling rate just because 1 mp3 packet header says so (fixes playback speed on some old mencoder generated avis which where then dumped to mp3)

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

c0d8052b 10/30/2006 01:29 AM Michael Niedermayer

avoid random noise on damaged frames

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

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

e1931c59 10/05/2006 06:15 PM Diego Biurrun

message typo fixes

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

62bb489b 09/27/2006 07:54 PM Måns Rullgård

add some #ifdef CONFIG_ENCODERS/DECODERS

Originally committed as revision 6356 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

004390a6 09/22/2006 03:57 PM Luca Barbato

Use mathops

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

39e1b5cf 09/19/2006 09:31 AM Michael Niedermayer

use correct rounding functions
this should fix a floating point exception on some systems
lets hope these arent missing anywhere, if so another solution must be found

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

8e453fc3 09/15/2006 10:28 AM Baptiste Coudurier

remove unused, uninitialized free format frame size

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

1839e854 09/13/2006 09:39 PM Siarhei Siamashka

Proper armv5te instructions support detection.
patch by Siarhei Siamashka, siarhei dot siamashka gmail com

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

024da4b1 09/10/2006 10:29 PM Siarhei Siamashka

armv5 optimizations
patch by Siarhei Siamashka siarhei.siamashka at gmail com

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

7b95bc58 09/08/2006 08:27 AM Michael Niedermayer

print more correct error messges

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

0e176c3e 09/02/2006 11:10 PM Måns Rullgård

remove redundant declarations

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

1b4f17fa 08/28/2006 04:15 PM Michael Niedermayer

fix buffer handling

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

ee3bc9d3 08/27/2006 09:45 PM Michael Niedermayer

overread AV_LOG_ERROR -> AV_LOG_DEBUG

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

c0c66dd8 08/27/2006 11:42 AM Michael Niedermayer

fix low bitrate mp3

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

39b434c6 08/27/2006 07:19 AM Michael Niedermayer

check the validity of the amount of the remaining bytes in the bitsteam before memcpy

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

716d73b4 08/26/2006 08:16 PM Michael Niedermayer

unused var

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

d6bea623 08/26/2006 06:02 PM Michael Niedermayer

make mpa_decode_header() 10 times faster

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

731d0b1a 08/26/2006 05:29 PM Michael Niedermayer

another silly typo which surprisingly neither valgrind nor cmp of the file output cought

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

d37bb9d8 08/26/2006 03:24 PM Michael Niedermayer

10l found by valgrind

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

06e7fb82 08/26/2006 12:19 PM Michael Niedermayer

remove duplicated parser, people who pass random gibblets of the bitstream into the decoder will have to pass it through a AVParser like for all other codecs too
remove silly internal buffering architecture (removes 1 memcpy() of the bitstream)
mp3on4 and mp3adu untested...

9bffa9e7 08/25/2006 02:42 PM Michael Niedermayer

avoid branch

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

14168ddb 08/25/2006 01:58 PM Michael Niedermayer

move variable declarations so that their scope is smaller

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

bc2d2757 08/25/2006 01:46 PM Michael Niedermayer

move the +400 out of the innermost loop

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

9b49f89c 08/25/2006 01:36 PM Michael Niedermayer

avoid reading exponent twice

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

1f1d675b 08/25/2006 12:26 PM Michael Niedermayer

reduce size of vlc table, thats slightly faster here

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

55017f35 08/25/2006 11:55 AM Michael Niedermayer

try to avoid l3_unscale() by using a table

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

f8347c41 08/25/2006 10:00 AM Michael Niedermayer

replace l3_unscale(1, exponents[pos]) by LUT

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