Ronald S. Bultje
6e44ba1550
Use get_bits_left() instead of size_in_bits - get_bits_count().
...
Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
c902340599
Reduce stack memory allocation in MP3 decoder
...
Originally committed as revision 20451 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
eadaa00c6f
Add support for hardcoding the mpegaudiodec tables.
...
Reduces .bss size by about 194 kB.
Originally committed as revision 20400 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
9adcccde0c
mpegaudiodec, mpc and qdm2 all use the same mpa_synth window, so make
...
them use the same variable/global storage.
Saves 4 kB in .bss.
Originally committed as revision 20314 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
a57afd2943
Partially revert r20233, exp2f is not available on some BSDs, DOS and AVR32.
...
Originally committed as revision 20240 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
686884da9d
Use cbrtf and exp2f instead of pow to calculate tables for MPEG audio decoding.
...
This hopefully is fast enough so that it is reasonable to use the same formula
directly instead of the table for CONFIG_SMALL.
Originally committed as revision 20233 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
45a014d75e
Set data_size to 0 to avoid having it uninitialized.
...
based on 31_mp3_outlen.patch by chrome.
Originally committed as revision 19988 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
f7304e99d4
Check data_size in decode_frame_mp3on4().
...
Originally committed as revision 19987 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
0d31833d04
check data_size in decode_frame()
...
Originally committed as revision 19986 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
83614f2df9
Reduce pointless verbosity after seeks in the MP3 decoder.
...
Originally committed as revision 19759 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
822d0a6e0c
Drop code that attempts to decode frames that are prefixed by junk.
...
Too often it ends up decoding random data into noise without detecting
it (for example after seeking of some MP3 data with oddly often occurring
startcode emulation).
Fixes issue1154.
Originally committed as revision 19302 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
1e24f1b25d
mpegaudio: enclose SUM8() macro args in parens when used
...
Originally committed as revision 18746 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
bf030c887f
mpegaudio: avoid unnecessary copy in high-precision mode
...
Originally committed as revision 18745 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
adb206c238
mpegaudio: use av_clip()
...
Originally committed as revision 18744 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Zdenek Kabelac
e2fa5cf4c9
Do not scan for MP3 header after the given buffer and return skipped
...
bytes along with consumed bytes on successful decoding.
patch by Zdenek Kabelac, zdenek.kabelac gmail com
Originally committed as revision 18736 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
b52b6ae489
Remove unused variable from decode_init() found by CSA.
...
Originally committed as revision 18550 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Thilo Borgmann
7a00bbad21
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.
Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.
Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Daniel Verkamp
5ef251e504
Add missing av_cold in static init/close functions.
...
Patch by Daniel Verkamp daniel at drv dot nu.
Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
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
16 years ago
Andreas Öman
cf92cec7d8
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
16 years ago
Diego Biurrun
406792e7b0
cosmetics: Remove pointless period after copyright statement non-sentences.
...
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
49cdad8d78
simplify: group all the AUDIO_NONSHORT parameters in the same place
...
Originally committed as revision 16602 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
0f6a659ddf
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
16 years ago
Diego Biurrun
ad1eebe360
Use CONFIG_MPEGAUDIO_HP directly instead of USE_HIGHPRECISION indirection.
...
Originally committed as revision 16594 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
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
16 years ago
Michael Niedermayer
cb595b7f02
Add dummy mp1_decoder to complement the existing dummy mp2/mp3 decoders.
...
Originally committed as revision 16581 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Andreas Öman
11c23b64ac
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
16 years ago
Andreas Öman
1af34f094e
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
16 years ago
Måns Rullgård
4deaa94639
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
16 years ago
Aurelien Jacobs
37d3e0667a
uses FF_ARRAY_ELEMS() where appropriate
...
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
1d4113d053
Only print "invalid new backstep" when it is really invalid.
...
Fixes issue541.
Originally committed as revision 15339 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
bf3a971c12
Make decoder more robust by default against broken encoders.
...
Fixes issue540.
Originally committed as revision 15336 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
047599a4ba
Rename error_resilience to error_recognition.
...
Originally committed as revision 15270 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
969c163f1f
Remove debuging junk that probably hasnt been used by anyone since years.
...
Originally committed as revision 15133 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Art Clarke
bbdf87285a
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
17 years ago
Andreas Öman
b000c604f2
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
17 years ago
Andreas Öman
11f63a221b
Supply context argument to av_log() in mpeg audio decoder.
...
Originally committed as revision 14312 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
9ea583e1f6
mpegaudio: use MAC/MLS macros in ff_mpa_synth_filter
...
Originally committed as revision 14199 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
fe4bf37455
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
...
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
162d4fc99d
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
17 years ago
Baptiste Coudurier
169203c1d9
break if error in header so it can output already decoded frames
...
Originally committed as revision 12999 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
41b8800f88
merge init with declaration
...
Originally committed as revision 12998 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
f91c089812
cosmetics: merge decls
...
Originally committed as revision 12997 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
5fd7a9fcdf
simplify: merge loops
...
Originally committed as revision 12996 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
8da8970d01
simplify
...
Originally committed as revision 12995 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
0d5b2eb445
simplify: remove useless fields and vars
...
Originally committed as revision 12994 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
676e26ab6d
move MP3On4DecodeContext def near the code and under ifdef
...
Originally committed as revision 12993 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
9f95bfe2b9
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
17 years ago
Baptiste Coudurier
f0f53c83ba
fix 1 frame config decoding
...
Originally committed as revision 12991 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago