Commit Graph

223 Commits

Author SHA1 Message Date
Lars Täuber a4873f7d9d Fix indention, patch by Lars Täuber.
Originally committed as revision 18594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:29:54 +00:00
Michael Niedermayer 29322398fc Remove unused variable from slice_buffer_release() found by CSA.
Originally committed as revision 18570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 17:39:09 +00:00
Michael Niedermayer 75eaa91c15 Remove unused variables from slice_buffer_load_line() found by CSA.
Originally committed as revision 18561 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 15:01:58 +00:00
Diego Biurrun 64bde1974b cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 17:23:38 +00:00
Michael Niedermayer cc0241283b Make sure the next used frame is released so get_buffer() wont fail.
Originally committed as revision 18399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:19:25 +00:00
Michael Niedermayer 38fd076c21 Move release_buffer() up so it is prior to a future call to it.
Originally committed as revision 18398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:17:53 +00:00
Michael Niedermayer 0a08b5735b Factorize release_buffer()
Originally committed as revision 18397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:44:18 +00:00
Michael Niedermayer eebbb33abf Make sure spatial_decomposition_count is not too large for picture size.
this led to an infinite loop in mirror().

Originally committed as revision 18396 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:23:13 +00:00
Michael Niedermayer 69409ccb80 Skip non intra frames that have no reference frames.
Originally committed as revision 18395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:13:35 +00:00
Michael Niedermayer 440882f7be Make sure spatial_decomposition_count is >0.
Originally committed as revision 18394 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 19:45:10 +00:00
Michael Niedermayer dc7f45a08e Make sure the block array is of the correct size.
This might have been exploitable.

Originally committed as revision 18393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:47:50 +00:00
Michael Niedermayer bc4350a333 Check spatial_decomposition_count too, fixes another crash.
Originally committed as revision 18392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:37:26 +00:00
Michael Niedermayer 45d1d9794d 10l, forgot to remove old code, which broke snow.
Originally committed as revision 18391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:29:54 +00:00
Michael Niedermayer 158f189f82 Factorize check of read symbols.
Originally committed as revision 18390 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:21:51 +00:00
Michael Niedermayer a794356602 Fix spatial_decomposition_type validity check.
Fixes infinite loop (did no investigate why exactly it got stuck).

Originally committed as revision 18389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 15:33:02 +00:00
Michael Niedermayer f0812be883 Fix crash when max_ref_frames was out of range.
This might have been exploitable.
Fixes first crash of issue840.

Originally committed as revision 18388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 15:17:03 +00:00
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
2009-04-07 15:59:50 +00:00
Benoit Fouet ccc745cdf4 Move declaration of prn before any assignment.
Originally committed as revision 18255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 07:37:55 +00:00
Diego Biurrun 294eaa2643 Replace random() usage in test programs by av_lfg_*().
Originally committed as revision 18070 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:48:27 +00:00
Diego Biurrun 578f90a8d5 Align test program output columns.
Originally committed as revision 18068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:40:05 +00:00
Aurelien Jacobs 199436b952 moves mid_pred() into mathops.h (with arch specific code split by directory)
Originally committed as revision 16681 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 22:57:40 +00:00
Aurelien Jacobs 9ce6c13879 export gcd function as av_gcd()
Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 11:13:33 +00:00
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
2009-01-13 23:44:16 +00:00
Michael Niedermayer fe5c7e588d More POSIX _t namespace cleanup.
Originally committed as revision 16082 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-12 16:21:23 +00:00
Michael Niedermayer a6f2c0d6e5 Fix regression test failure with pthreads on multiprocessor systems.
Fixes issue517

Originally committed as revision 15976 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-02 10:43:08 +00:00
Måns Rullgård bd2b6b33bf snow: move scratch buffer from stack to malloced buffer in context
This is required to ensure 16-byte alignment.

Originally committed as revision 15934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-25 00:20:49 +00:00
Mathieu Malaterre 7942269b71 cosmetics: s/const static/static const/g
patch by Mathieu Malaterre, mathieu.malaterre gmail com

Originally committed as revision 14850 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-19 20:04:46 +00:00
Stefan Gehrer cf2baeb338 mark read-only data as const
Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 20:01:31 +00:00
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
2008-06-12 21:50:13 +00:00
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
2008-04-27 22:39:51 +00:00
Zuxy Meng 98a6fff98c Apply 'cold' attribute to init/uninit functions in libavcodec
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-21 03:11:20 +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
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 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
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
Diego Biurrun 94ae6788e2 cosmetics: Demplayerify indentation.
Originally committed as revision 12240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 17:56:00 +00:00
Diego Biurrun 301df48074 Add comments to some #endif directives.
Originally committed as revision 12239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 17:13:42 +00:00
Diego Biurrun e6464f8b5e cosmetics: spelling/grammar
Originally committed as revision 12238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 17:06:31 +00:00
Diego Biurrun d248905ba5 Remove START_TIMER and STOP_TIMER macros.
Originally committed as revision 12227 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 09:35:21 +00:00
Diego Biurrun 4847a997aa Remove commented-out av_log calls.
Originally committed as revision 12222 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-25 22:44:35 +00:00
Michael Niedermayer 2936438a38 Make diego happy.
Originally committed as revision 12220 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-25 22:32:52 +00:00
Michael Niedermayer 7e2ea58313 some const
Originally committed as revision 11746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-01 14:18:09 +00:00
Baptiste Coudurier 8943802849 add parenthesis, fix warning: snow.c:2413: warning: suggest parentheses around && within ||
Originally committed as revision 11687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-31 00:57:48 +00:00
Baptiste Coudurier f0a7084088 Add const qualifier, fix warnings:
snow.c:2292: warning: assignment discards qualifiers from pointer target type
snow.c:2294: warning: assignment discards qualifiers from pointer target type
snow.c:2300: warning: assignment discards qualifiers from pointer target type

Originally committed as revision 11686 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-31 00:56:29 +00:00
Diego Biurrun 6a339972af Remove unused variables in test code.
Originally committed as revision 11599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-22 23:47:59 +00:00
Diego Biurrun 07e4e3ea8b Consistently use TEST as the preprocessor condition to enable test code.
Originally committed as revision 11581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-20 23:53:51 +00:00
Michael Niedermayer 526e037b95 Remove green clouds.
fixes issue263

Originally committed as revision 11524 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-14 04:27:03 +00:00
Michael Niedermayer 1918057c8a prevent warnings about functions being possibly unused
Originally committed as revision 11174 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-06 08:38:49 +00:00
Michael Niedermayer 9a3bb2b89c thank you for your efforts to keep my code clean, but i would like to
keep the functions below as they are usefull for debugging, testing,
experiments and development

revert
r11048 | diego | 2007-11-17 00:15:39 +0100 (Sat, 17 Nov 2007) | 4 lines

Remove unused functions, fixes the warnings:
snow.c:1163: warning: 'spatial_compose53i' defined but not used
snow.c:1313: warning: 'spatial_compose97i' defined but not used

Originally committed as revision 11173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-06 02:02:41 +00:00