Commit Graph

4348 Commits

Author SHA1 Message Date
Kostya Shishkov
77ccd3ba54 General approach to parsing chunks in VC-1 AP
Originally committed as revision 7803 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-02 06:45:21 +00:00
Michael Niedermayer
14c49573d8 some (probably exploitable) out of array write fixes
Originally committed as revision 7802 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-02 02:58:01 +00:00
Måns Rullgård
7348ed6e94 missed a redundant load
Originally committed as revision 7801 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-02 00:23:19 +00:00
Måns Rullgård
7c6c0dd9e7 revert accidental checkin
Originally committed as revision 7800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-01 23:30:33 +00:00
Måns Rullgård
ac62b62600 save one cycle
Originally committed as revision 7799 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-01 22:50:38 +00:00
Måns Rullgård
173fd724f5 remove redundant loads
Originally committed as revision 7798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-01 22:44:42 +00:00
Kostya Shishkov
b956373b6f Check for out-of-bounds access
Originally committed as revision 7797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-01 18:39:49 +00:00
Michel Bardiaux
286c71074a Add decode_end method to bmp decoder. Patch by Michel Bardiaux,
mbardiaux mediaxim dot be.

Originally committed as revision 7796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-01 09:48:09 +00:00
Baptiste Coudurier
09d7aa7e30 correctly set profile/level for hd
Originally committed as revision 7795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-01 09:47:36 +00:00
Michel Bardiaux
65d999d6cf Activate guards in avcodec_default_get_buffer. Patch by Michel Bardiaux,
mbardiaux mediaxim dot be.

Originally committed as revision 7794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-01 09:45:05 +00:00
Måns Rullgård
118a49b0b7 optimize IDCT of rows with mostly zero coefficients
Originally committed as revision 7790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 23:04:56 +00:00
Reimar Döffinger
4302963daa Move lzo decompression to libavutil
Originally committed as revision 7789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 22:58:53 +00:00
Reimar Döffinger
c215e40316 Make sure we do not accidentially "fix" cnt to something < 0
Originally committed as revision 7788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 21:20:31 +00:00
Reimar Döffinger
c0a8b87600 Simplify checks, use that we know that cnt will not be < 0
Originally committed as revision 7787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 21:00:48 +00:00
Reimar Döffinger
56f8647aaa Remove boundary checks that are actually done "well enough"
in copy function

Originally committed as revision 7786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 20:57:30 +00:00
Reimar Döffinger
9b2c14df60 Documentation fix: Copy functions should "work" fine for cnt == 0
Originally committed as revision 7785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 20:26:32 +00:00
Reimar Döffinger
1db8c21c1f Optimize LZO copy operations
Originally committed as revision 7784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 17:16:13 +00:00
Michel Bardiaux
e8f917d6fd Fix memcpy out-of-bounds.
patch by Michel Bardiaux, mbardiaux mediaxim be

Originally committed as revision 7780 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 11:19:48 +00:00
Michael Niedermayer
960e48f8f0 another >> vs >
Originally committed as revision 7779 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 10:48:08 +00:00
Michael Niedermayer
bf47272f3c simpify state and make code 2% faster
reimar, dont hesitate to flame me for not sending patches and feel free to revert any or all of my changes to lzo.c if you dont like them

Originally committed as revision 7778 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 10:34:13 +00:00
Reimar Döffinger
5fe9c42ceb Add two extra needed bounds checks
Originally committed as revision 7777 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 10:29:58 +00:00
Michael Niedermayer
801778bc83 replace if(x>>b) by if(x>C) as shifts are slow on some cpus and i have my doubts that gcc can replace the shifts as x is signed, it could in theory but well its gcc ...
Originally committed as revision 7776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 10:07:22 +00:00
Reimar Döffinger
d62a0c1e5d Add code to testcode to ease comparing with liblzo.
Originally committed as revision 7775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 09:37:02 +00:00
Michel Bardiaux
e96cc09dd2 Make BMP decoder use bytestream. Patch by Michel Bardiaux
mbardiaux mediaxim dot be.

Originally committed as revision 7773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 00:34:56 +00:00
Panagiotis Issaris
eabf65608d Remove the getbe16 functions and use the AV_RB16 macro instead. Patch by Ian
Caulfield, ian dot caulfield gmail dot com.

Originally committed as revision 7768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-30 14:24:12 +00:00
Ian Caulfield
4ee97612c7 Fix a bug in the DVD subtitle decoder where subtitles with odd heights would not
have the last line decoded, leaving the bottom line of the bitmap array
uninitialised. Patch by Ian Caulfield, ian dot caulfield gmail dot com.

Originally committed as revision 7767 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-30 14:19:43 +00:00
Panagiotis Issaris
9dd6c80453 Add the const specifier as needed to reduce the number of warnings.
Originally committed as revision 7764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-30 10:31:34 +00:00
Måns Rullgård
204ce38f53 typo fix by Dmitry Antipov dmantipov =a= yandex =d= ru
Originally committed as revision 7763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-29 22:27:27 +00:00
Måns Rullgård
34b1b8fda8 theoretically save one cycle
Originally committed as revision 7762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-29 22:25:54 +00:00
Kostya Shishkov
b024824bed Fix BI-frames decoding for Adv. profile
Originally committed as revision 7758 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-29 14:23:00 +00:00
Michel Bardiaux
d8b7b352a8 Fix segfault in bmp decoder. Patch by Michel Bardiaux mbardiaux mediaxim dot be.
Originally committed as revision 7757 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-29 14:07:12 +00:00
Benjamin Larsson
753c9d3260 Check that js_vlc_bits from the extradata is in a valid range.
Originally committed as revision 7756 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-29 10:42:36 +00:00
Benjamin Larsson
862be28b19 Get rid of the COOKextradata struct. And use valid C to parse the extradata.
Originally committed as revision 7755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-29 10:32:14 +00:00
Benjamin Larsson
6e584be16c Kill a warning and don't use modulus.
Originally committed as revision 7754 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-29 08:58:03 +00:00
Benjamin Larsson
a5b8a69c70 decode_subpacket cleanup by Ian Braithwaite ian braithwaite dot dk.
Originally committed as revision 7753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-29 08:37:22 +00:00
Måns Rullgård
7d42886b93 ARMv6 SIMD IDCT
Originally committed as revision 7752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-28 21:32:08 +00:00
Reimar Döffinger
a737f1dfdb LZO optimization: check input buffer bounds less frequently if padded
Originally committed as revision 7747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-28 16:49:51 +00:00
Benjamin Larsson
d7973906de Sort out the diffrent cook versions.
Originally committed as revision 7739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-28 10:17:48 +00:00
Benjamin Larsson
70ab75eb6a Cook stereo (MONO_COOK2) bugfix, by Ian Braithwaite.
ian at braithwaite dot dk.

Originally committed as revision 7738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-28 10:05:21 +00:00
Benjamin Larsson
b3203b64c6 Get rid of one warning.
Originally committed as revision 7735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 17:30:54 +00:00
Luca Barbato
fe70f25c58 Simplify and avoid a warning (should be faster on Cell and certain G4 revisions)
Originally committed as revision 7734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 15:09:34 +00:00
Kostya Shishkov
4b3b5a2337 Coded residual in WavPack may be > 0xFFFF
Originally committed as revision 7733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 14:24:40 +00:00
Reimar Döffinger
8cb59bce97 Fix _LZO_H vs. LZO_H typo
Originally committed as revision 7732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 14:23:55 +00:00
Reimar Döffinger
cf0ef3dc34 Fix buffer end checks in lzo copy code to work in all cases.
Originally committed as revision 7731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 14:15:03 +00:00
Måns Rullgård
7073e9fc69 rename CMOV_IS_FAST to HAVE_FAST_CMOV and simplify configure
Originally committed as revision 7729 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 14:10:57 +00:00
Reimar Döffinger
266aa26c52 Add lzo test code
Originally committed as revision 7727 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 13:48:27 +00:00
Luca Barbato
994fd8500d Fix warnings and simplify/reorder the code
Originally committed as revision 7726 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 12:35:12 +00:00
Michel Bardiaux
76ebb18f16 Segregate code common to BMP decoder and future encoder
patch by Michel Bardiaux, mbardiaux mediaxim be

Originally committed as revision 7721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 07:39:16 +00:00
Kostya Shishkov
74fd63d009 Set aspect ratio if present (for AP only)
Originally committed as revision 7720 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 06:57:11 +00:00
Michael Niedermayer
1fdefd9881 fix inifnite loop with http://sam.zoy.org/zzuf/lol-mplayer.mpg
Originally committed as revision 7718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-26 15:26:08 +00:00