Commit Graph

23 Commits

Author SHA1 Message Date
reimar 422c92e314 Simplify and clamp coefficient index for MS ADPCM
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27270 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-12 10:08:40 +00:00
reimar c83dca172f 100l, fix MS ADPCM decoding for e.g. http://samples.mplayerhq.hu/mov/qtaudio/surge-2-16-L-ms02.mov
First coefficient array must be unsigned to fit in 8 bits


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27269 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-12 09:23:14 +00:00
reimar 792dc55d19 Check length of input buffer for msadpcm
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27260 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 19:27:35 +00:00
reimar ffc22175d3 Add a comment on shift vs. division
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27259 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 19:00:49 +00:00
reimar 68e6f22bbc Scale msadpcm coefficients to fit into 8 bits
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27258 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 18:59:03 +00:00
reimar 4366cc211c Simplify ad_msadpmc.c: Use AV_RL16, merge sign extension into LE_16 read and
use (int16_t) to let the compiler do the sign extension.
Reduces code size on x86_64, gcc 4.3.1 by 248 bytes.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27257 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 18:51:12 +00:00
reimar 05deb158cf Copy macro simplification from imaadpcm to msadpcm
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27256 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 18:36:21 +00:00
reimar 796e4a53ca Remove useless comments from ad_msadpcm
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27255 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 18:14:16 +00:00
reimar f5ead9d0ee Make msadpcm arrays const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27254 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 18:13:11 +00:00
diego c32f706c96 Do not #include libavutil/common.h. It is not used directly and mpbswap.h
now #includes all required headers on its own.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26312 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-01 14:19:45 +00:00
reimar 18004d2d98 Hack around libavutil/bswap.h compilation problems due to always_inline undefined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21523 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-07 11:58:07 +00:00
diego cac6c0eea2 Remove bswap.h, use libavutil/bswap.h instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21388 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-29 15:02:45 +00:00
reimar 393924ff39 setting samplesize to 2 in decoders where neccessary.
Needed because initialization of sh_audio was moved from dec_audio to
demuxer.c, and some demuxers set samplesize incorrect or to 0.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13428 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-21 20:34:47 +00:00
arpi 385a4b8f30 100l - Michael is right, we don't need le2me here
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7894 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-24 10:05:09 +00:00
arpi 4c2a619642 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7891 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-23 23:48:42 +00:00
arpi f40b7e91b8 fixed unaligned access (bus error on sparc)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7889 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-23 23:15:25 +00:00
arpi 1b667f61ba -afm/-vfm migration from ID (int) to NAME (string) - simplifies code and makes dlopen()'ing possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7181 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-30 21:44:20 +00:00
arpi 668d7c5817 bugfix by Keiki SATOH <kki@wakusei.ne.jp>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6610 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-29 22:10:18 +00:00
arpi f331f54b26 control() done
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5482 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-03 21:37:26 +00:00
arpi aff40c7823 audio input buffer allocation/free cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5459 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-01 17:58:04 +00:00
melanson a9803b9f75 reworked ADPCM decoders; changes include:
* fixed MS IMA ADPCM
 * dissolved adpcm.c/.h into appropriate ad_* decoders
 * DK4 audio is handled directly by IMA ADPCM decoder (this obsoletes
   ad_dk4adpcm.c)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5409 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-30 22:27:45 +00:00
melanson 18f583efc7 fixed so the decoder cooperates better with the rest of the system
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5351 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-26 04:41:43 +00:00
arpi 7c026066ea imported from MPlayerXP, dlopen() hack removed, some bugs fixed, interface functions changed to static, info->author field added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5341 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-25 21:06:01 +00:00