Commit Graph

6450 Commits

Author SHA1 Message Date
Diego Biurrun 77ab59eb7f two more typos spotted by Mike
Originally committed as revision 12524 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-20 19:36:20 +00:00
Diego Biurrun c2f178da71 british_english--;
Originally committed as revision 12522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-20 19:08:42 +00:00
Michael Niedermayer 8474f58e8b More complete documentation for AVFrame.reference.
Originally committed as revision 12518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-20 18:16:13 +00:00
Michael Niedermayer 943032b155 Hardcode register to prevent aparent miscompilation.
Fixes regression tests with gcc 2.95.

Originally committed as revision 12512 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-20 14:24:29 +00:00
Michael Niedermayer dea00a4623 remove unused temp
Originally committed as revision 12511 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-20 14:09:31 +00:00
Baptiste Coudurier 6122b733e9 omg, fix compilation
Originally committed as revision 12509 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-20 09:38:55 +00:00
Baptiste Coudurier d0ed455f19 correctly set avctx->frame_size for mp3on4 and mp3adu
Originally committed as revision 12508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-20 09:36:04 +00:00
Ramiro Polla 956330452b Remove useless variable since r8456.
Originally committed as revision 12493 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 20:14:57 +00:00
Ramiro Polla a7129de51b Mimic decoder.
Originally committed as revision 12491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 19:51:34 +00:00
Måns Rullgård b55aa9a904 get register names from x86_cpu.h
Originally committed as revision 12482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 23:08:19 +00:00
Måns Rullgård a62a1c3152 use HAVE_FAST_64BIT
Originally committed as revision 12480 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 23:08:14 +00:00
Måns Rullgård ea68e33469 cosmetics: remove useless \-newline escapes
Originally committed as revision 12479 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 21:00:30 +00:00
Måns Rullgård 4f54a3b8b4 indentation
Originally committed as revision 12478 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 19:22:31 +00:00
Måns Rullgård 844ea46aeb clean up FFT SIMD selection
Originally committed as revision 12477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 19:22:28 +00:00
Måns Rullgård d85d7a0be7 mpegvideo_armv5te.o belongs to OBJS, not ASM_OBJS
Originally committed as revision 12467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 02:33:08 +00:00
Måns Rullgård 5550eba88d typo: add missing \ in multi-line macro
Originally committed as revision 12466 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 02:33:05 +00:00
Måns Rullgård e6b790f9e7 fix typo ARCH_PPC -> ARCH_POWERPC
Originally committed as revision 12465 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 02:33:02 +00:00
Diego Biurrun b0605329c9 Move functions that are only used when libswscale is not compiled in below
the appropriate #ifdef. This avoids a bunch of "defined but not used" warnings
when compiling with libswscale enabled.

Originally committed as revision 12463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-16 17:34:31 +00:00
Måns Rullgård 77f11d8a4c improve precision in mdct.c using double for some temporaries
Originally committed as revision 12457 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-16 13:15:42 +00:00
Diego Biurrun bd10713636 typo fixes
Originally committed as revision 12449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-15 16:15:47 +00:00
Dave Yeo b96644bfe3 Add attribute_align_arg to os2thread.c.
Patch by Dave Yeo.

Originally committed as revision 12447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-15 12:28:35 +00:00
Ramiro Polla 69b192acb8 Typo
Originally committed as revision 12446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-15 12:24:31 +00:00
Diego Biurrun b2c26e2717 Use correct t printf modifier for pointer differences.
Originally committed as revision 12442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-14 13:19:39 +00:00
Baptiste Coudurier 99c763d143 log aspect ratio forbidden value, and fail if error resilience is high
Originally committed as revision 12438 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-14 09:33:38 +00:00
Baptiste Coudurier a2338352be do not fail badly if aspect ratio is 0/forbidden, fix issue 369
Originally committed as revision 12434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 18:26:53 +00:00
Diego Biurrun bfb80dbe21 This file does not use size_t, so no need to #include <sys/types.h>.
Originally committed as revision 12432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 18:10:58 +00:00
Michael Niedermayer 9d2cc8c1ee If consumed does not match nalsize, favor nalsize.
Fixes issue385.

Originally committed as revision 12430 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 01:49:19 +00:00
Diego Biurrun 6ef2912879 Add missing stdint.h #include to headers that use it.
Originally committed as revision 12429 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 00:20:15 +00:00
Diego Biurrun 2cab640129 typo fixes
Originally committed as revision 12428 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-12 23:58:46 +00:00
Justin Ruggles 98f6dfa653 make input buffer const, as it should be. fixes a warning.
Originally committed as revision 12418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-10 21:59:30 +00:00
Diego Biurrun 7ce6892373 misc spelling fixes
Originally committed as revision 12410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-10 18:42:09 +00:00
Diego Biurrun 13ca50f367 Rename --enable-swscaler --> enable-swscale to be consistent with the
directory name and other option names. Also rename variables accordingly.

Originally committed as revision 12408 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-10 17:54:24 +00:00
Mike Melanson 32c3047cac These video decoders do not need to include and initialize the DSP
support functions.

Originally committed as revision 12406 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-10 03:07:44 +00:00
Mike Melanson d61af67aa1 There is no reason to assign a variable to itself
Originally committed as revision 12405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-10 03:07:15 +00:00
Michael Niedermayer 1637930fe6 smaller tables
Originally committed as revision 12402 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-10 00:27:40 +00:00
Aurelien Jacobs 9701840bb5 add FF_ prefix to all (frame)_TYPE usage
Originally committed as revision 12399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-09 23:31:02 +00:00
Justin Ruggles 38dae9c3a6 downmix before imdct unless different size transforms are used. about 20%
faster 5.1-to-stereo downmixing.

Originally committed as revision 12397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-09 17:05:19 +00:00
Kostya Shishkov 811d914652 indentation
Originally committed as revision 12395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-09 14:16:27 +00:00
Kostya Shishkov 1ba3bae800 Correctly handle empty frames
Originally committed as revision 12394 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-09 14:15:40 +00:00
Kostya Shishkov 8c908d7d61 Fraps v5 decoding support
Originally committed as revision 12393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-09 09:04:35 +00:00
Kostya Shishkov 6a02cb8239 Add step variable (for future v5 decoding)
Originally committed as revision 12392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-09 09:03:23 +00:00
Diego Biurrun e73e4e75f9 cosmetics: Fix indentation in a few more places.
Originally committed as revision 12381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 20:27:16 +00:00
Diego Biurrun ef3dfbd427 cosmetics: Normalize {} placement after for, while, if.
Originally committed as revision 12380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 20:24:24 +00:00
Aurelien Jacobs a73cbf9709 huffman: add a zero_count flag and use it in fraps
fixes issue349

Originally committed as revision 12374 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 18:08:16 +00:00
Aurelien Jacobs bac02ed3c5 huffman: pass hnode_first as a flag instead of as an argument on its own
Originally committed as revision 12373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 17:57:13 +00:00
Mark Cox 8d06bd53f8 Fix unused variable warnings.
patch by mark cox, melbournemark+ffmpeg gmail.com

Originally committed as revision 12370 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 17:18:28 +00:00
Diego Biurrun 9b25f4a65f cosmetics: Consistently move NAME and FFLIBS to the top of each Makefile.
Originally committed as revision 12364 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 14:39:43 +00:00
Ramiro Polla 5dea940937 __stdcall -> WINAPI
Windows x64 has no __stdcall.
It is not yet supported, but someday it might...

Originally committed as revision 12363 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-07 19:47:44 +00:00
Måns Rullgård 0e32c8c65a simplify library version handling
Originally committed as revision 12362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-07 19:27:17 +00:00
Baptiste Coudurier cbaf50f850 indentation
Originally committed as revision 12356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-06 23:10:47 +00:00
Baptiste Coudurier 7ee4dd0282 do not display par and dar if not available
Originally committed as revision 12355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-06 23:09:16 +00:00
Måns Rullgård 5671fc14f6 consolidate CFLAGS, LDFLAGS, EXTRALIBS assignment
Originally committed as revision 12354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-06 20:44:44 +00:00
Panagiotis Issaris d42a814ef1 Make av_class a pointer to a const AVClass. Addresses one warning in
imgresample.c.

Originally committed as revision 12352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-06 17:41:31 +00:00
Benjamin Larsson ebf71dbda5 Don't use unchecked data from the bitstream.
Originally committed as revision 12351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-06 14:22:02 +00:00
Baptiste Coudurier 30400f0d03 fix interlaced decoding, original patch from reimar
Originally committed as revision 12349 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-06 09:45:59 +00:00
Kostya Shishkov 9dc92a38a0 IMA ADPCM encoder - QT variant
Originally committed as revision 12348 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-06 07:30:41 +00:00
Aurelien Jacobs 9822564d1d make compilation of mpeg12* and mpegvideo conditional
Originally committed as revision 12345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 21:43:30 +00:00
Aurelien Jacobs 6cbe71bd06 move ff_mpeg1_dc_scale_table to mpegvideo.c
Originally committed as revision 12344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 21:29:15 +00:00
Aurelien Jacobs 5a4334618c add dependencies for matroska audio and nut muxers over lavc
Originally committed as revision 12339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 16:34:47 +00:00
Aurelien Jacobs dc85e85943 doxyfy frame type comments and add some more comments
Originally committed as revision 12337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 15:23:54 +00:00
Aurelien Jacobs 48d533e6fa define BI frame type along with other frame types
Originally committed as revision 12336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 15:19:26 +00:00
Aurelien Jacobs c06ccb1357 cosmetic: align
Originally committed as revision 12335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 15:15:07 +00:00
Aurelien Jacobs 591bf9b942 add some required objects dependencies
Originally committed as revision 12333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 14:49:43 +00:00
Aurelien Jacobs 0c291f2d0f Avoid linking with h263 and mpeg4 find_frame_end()
when those codecs are not enabled.

Originally committed as revision 12332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 14:46:51 +00:00
Mike Melanson 282ee4e766 fix the WC3 Xan decoder by correcting the frame accounting logic
Originally committed as revision 12326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 06:58:20 +00:00
Michael Niedermayer 378774e9a8 Fix handling flags with the MSB set.
Originally committed as revision 12324 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 03:59:07 +00:00
Aurelien Jacobs fbd4293df9 remove more useless mpegvideo.h includes
Originally committed as revision 12323 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 00:43:11 +00:00
Aurelien Jacobs cbcd6c8ca9 move EDGE_WIDTH definition allong with draw_edges where it belongs
Originally committed as revision 12322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 00:38:14 +00:00
Aurelien Jacobs d37f007d54 remove #include "mpegvideo.h" where it is not needed
Originally committed as revision 12321 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 00:07:53 +00:00
Aurelien Jacobs 3bfe9260fa move relevant declarations to mpeg12data.h
Originally committed as revision 12320 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 00:06:09 +00:00
Aurelien Jacobs 6d93461504 move run length table constants to rl.h
Originally committed as revision 12319 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 23:58:12 +00:00
Aurelien Jacobs 288a44fb7a move ff_emulated_edge_mc() to dsputil
Originally committed as revision 12318 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 23:10:47 +00:00
Michael Niedermayer 8d4bef64b4 Remove unused elements from tables.
Originally committed as revision 12317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 22:09:54 +00:00
Michael Niedermayer 6a287b739f Detect and prevent reading over the end of counts_*. We pass the error
through a context variable as this is simpler and i think also faster, but
the return value of functions could be used instead of course.
The code also ensures as a side effect that the AC decoder state does not
become invalid.
This fixes all known crashes. And outputs nothing in case of an error instead
of random noise.

Originally committed as revision 12316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 21:58:34 +00:00
Michael Niedermayer 1a2a1d9077 Prevent segfault due to reading over the end of the input buffer.
Originally committed as revision 12315 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 21:39:21 +00:00
Aurelien Jacobs 7998988129 fix wmv3 dependencies
Originally committed as revision 12314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 18:38:32 +00:00
Aurelien Jacobs 49c35f16fc Fix compilation on powerpc.
DECLARE_ALIGNED_8 is not defined at that point, but this code is powerpc
only, so it's really equivalent to DECLARE_ALIGNED(16...

Originally committed as revision 12313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 18:35:12 +00:00
Aurelien Jacobs 015d0bb95c remove old draw_edges declaration cruft
Originally committed as revision 12312 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 10:54:51 +00:00
Aurelien Jacobs 4c79b95c32 move ff_init_scantable() into dsputil
Originally committed as revision 12311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 10:26:56 +00:00
Aurelien Jacobs 5a6a9e78ab move draw_edges() into dsputil
Originally committed as revision 12309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 00:07:41 +00:00
Aurelien Jacobs ce7f71a2dd dsputil.h is a local header
Originally committed as revision 12308 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 23:14:25 +00:00
Aurelien Jacobs c8deab7af7 include required header
Originally committed as revision 12307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 23:10:13 +00:00
Måns Rullgård 0e9fbd35b5 remove invalid free() forgotten in r12300
Originally committed as revision 12303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 21:54:18 +00:00
Michael Niedermayer f15e6b869f Provide non null class name to avoid crash with ffmpeg -h.
Originally committed as revision 12300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 19:53:27 +00:00
Justin Ruggles d8870f120e use scale factor instead of sum for downmix level adjustment. avoids division
inside downmix loop. 7% faster 5.1-to-stereo downmixing.

Originally committed as revision 12287 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-01 16:10:19 +00:00
Justin Ruggles 9d10e6e6c0 pre-calculate downmix coefficient sums. 2% faster 5.1-to-stereo downmixing.
Originally committed as revision 12286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-01 15:48:18 +00:00
Justin Ruggles a4de6dd2c1 Use 24-bit fixed-point transform coefficients until just before MDCT. This
gives 7% faster decoding on average.

Originally committed as revision 12284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-01 04:39:39 +00:00
Loren Merritt be0995b166 more aspect ratios added in one of the ammendments
Originally committed as revision 12282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-01 01:58:25 +00:00
Benoit Fouet 79aeec0839 Make AMR-NB block size const and 8 bits.
Originally committed as revision 12278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-29 08:01:01 +00:00
Benoit Fouet 675bc0bccb Define block size for AMR-WB (use IF2 table).
Spotted by John Fitzgerald: jjfitzgerald gmail com

Originally committed as revision 12277 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-29 07:59:29 +00:00
Michael Niedermayer b5a33ff124 suppress the second warning
Originally committed as revision 12276 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-28 23:44:52 +00:00
Reimar Döffinger 7e14b8082d Use cltd instead of cdq asm mnemonic, ICC and gcc support both, but
SunStudio 12 only supports the former.

Originally committed as revision 12275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-28 17:01:35 +00:00
Baptiste Coudurier 48026fbef6 1000l parenthesis
Originally committed as revision 12274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-28 16:11:56 +00:00
Baptiste Coudurier 83f02883df code is ok for 4bpp in mov too, fix 16grey.mov
Originally committed as revision 12273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-28 16:08:52 +00:00
Benjamin Larsson 800b9c24b7 Add more riff IDs to support remuxing.
Originally committed as revision 12266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-27 20:34:44 +00:00
Michael Niedermayer b85976ba64 better include
Originally committed as revision 12257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 23:51:59 +00:00
Michael Niedermayer 3635791a99 include dependencies ...
Originally committed as revision 12256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 23:49:41 +00:00
Diego Biurrun c91d512b36 Add multiple inclusion guards.
Originally committed as revision 12255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 23:17:08 +00:00
Diego Biurrun dc3f320dfd Add explanatory comment to '#define FLOAT float'.
Originally committed as revision 12254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 22:52:01 +00:00
Måns Rullgård 800c289a66 less preprocessor magic in version number macros
Originally committed as revision 12246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 20:37:59 +00:00