Commit Graph

4335 Commits

Author SHA1 Message Date
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
Panagiotis Issaris
de6c4b2dd3 Typo
Originally committed as revision 7717 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-26 15:11:10 +00:00
Baptiste Coudurier
4abc097146 remove void * used in arithmetic warnings
Originally committed as revision 7716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-26 12:32:23 +00:00
Michael Niedermayer
24368c4ae4 cosmetics / remove #if 0 code
Originally committed as revision 7715 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-26 02:29:23 +00:00
Panagiotis Issaris
b5bfb9f9de Silence GCC when incorrectly complaining that the "line" variable could be used
without having been initialized.

Originally committed as revision 7711 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-25 15:23:22 +00:00
Panagiotis Issaris
aadcc5cecd Bring down the number of snow.c warnings from 27 to 17 by using the const
keyword.

Originally committed as revision 7706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-25 09:54:22 +00:00
Panagiotis Issaris
6884c36c42 Brings down the number of snow.c warnings from 33 to 27 by putting parentheses
around + or - inside shift.

Originally committed as revision 7704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-25 09:43:52 +00:00
Benjamin Larsson
b6607559af Don't copy more then needed, bugfix by Gus Scheidt ellocogato at gmail dot com and Michel Bardiaux mbardiaux at mediaxim dot be.
Originally committed as revision 7702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-25 08:21:02 +00:00
Kostya Shishkov
615259a33e Some TIFFs do not set rows per strip for single strip.
Originally committed as revision 7701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-25 06:44:53 +00:00
Diego Biurrun
722dabcc94 Move conditional CFLAGS and OBJS setting to common place.
Originally committed as revision 7699 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-25 00:34:38 +00:00
Diego Biurrun
150d27725b Theora encoding via libtheora.
courtesy of Paul Richards, paul.richards gmail com

Originally committed as revision 7698 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-25 00:16:28 +00:00
Kostya Shishkov
8ea780d73d Add debug messages for AP headers
Originally committed as revision 7695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-24 17:50:28 +00:00
Kostya Shishkov
14f3f3a1ad Off-by-one error fix
Originally committed as revision 7694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-24 17:49:26 +00:00
Kostya Shishkov
5cca6bc3cd Fail on VC-1 interlaced streams
Originally committed as revision 7693 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-24 17:47:42 +00:00