Clément Bœsch
dc75d6dbf2
Avoid pointless check before calling free
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-03 01:36:00 +00:00
Anton Khirnov
4868bebe5b
Add forgotten minor API bumps and APIChanges entries
...
The bumps are for adding version.h and avio_{get/put}_str functions in
lavf and making av_dlog public in lavu.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-02-02 22:42:39 +01:00
Mans Rullgard
365e3c7878
Rename attribute_used to av_used and move it to attributes.h
...
This is consistent with most of the other attribute macros.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-31 16:01:26 +00:00
Luca Barbato
dfd2a005eb
Replace dprintf with av_dlog
...
dprintf clashes with POSIX.1-2008
2011-01-29 23:55:37 +01:00
Mans Rullgard
e781c4e6ff
intfloat_readwrite: include "mathematics.h" for fallback macros
...
This allows this file to build on systems lacking NAN or INFINITY
in math.h.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-25 15:57:53 +00:00
Reimar Döffinger
032f406864
Handle input or output len of 0 properly in lzo decoder.
...
(cherry picked from commit 7d5082600e
)
2011-01-24 21:25:43 +01:00
Mans Rullgard
7a5a168abe
MIPS: use inline asm only when supported by compiler
2011-01-23 19:05:08 +00:00
Mans Rullgard
ec5f57192a
cpu-test: include stdio.h only for test prog
2011-01-18 20:48:24 +00:00
Mans Rullgard
324e7ee260
Use INFINITY and NAN macros instead of 1/0 and 0/0
2011-01-18 20:48:23 +00:00
Janne Grunau
2c3589bfda
consolidate .gitignore patters into a single file
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-18 21:32:05 +01:00
Janne Grunau
348b8218f7
convert svn:ignore properties to .gitignore files
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-17 15:50:14 +01:00
Daniel Verkamp
73f6d31e6c
Win32 support for av_file_map()
...
Originally committed as revision 26221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-05 05:16:33 +00:00
Daniel Verkamp
dfaa9f3cb3
Recognize FFMPEG_FORCE_NOCOLOR environment variable on Win32
...
Fixes issue 2461
Originally committed as revision 26186 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-01 20:08:15 +00:00
Stefano Sabatini
f02cbc4590
Fix av_file_map(): replace stat(filename, &st) with fstat(fd, &st).
...
The file might be replaced between open() and stat().
Spotted by Mans.
Originally committed as revision 26075 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-22 16:16:31 +00:00
Stefano Sabatini
1b31037d62
Replace lstat() with stat() in av_file_map(). The lstat() use was wrong.
...
Originally committed as revision 26074 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-22 15:32:13 +00:00
Stefano Sabatini
0328b9ea39
Add av_file_map() and av_file_unmap() functions.
...
Originally committed as revision 26073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-22 14:13:04 +00:00
Nicolas George
0bc55f5d32
Add AVERROR_*_NOT_FOUND codes.
...
Originally committed as revision 26056 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-19 09:01:02 +00:00
Ramiro Polla
e3c011c836
fix building of cpu-test by including required header
...
Originally committed as revision 25917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-07 15:25:44 +00:00
Stefano Sabatini
3011ecdeb7
Introduce FFMPEG_FORCE_NOCOLOR, with the same meaning and use of
...
NO_COLOR (but properly prefixed for avoiding namespace conflicts).
Originally committed as revision 25899 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-06 21:47:10 +00:00
Etienne Buira
129983408d
Allow to force colored output.
...
Patch by Etienne Buira, etienne d buira d lists a free d fr
Originally committed as revision 25888 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-05 13:56:49 +00:00
Stefano Sabatini
bb4afa13dd
Deprecate avcodec_pix_fmt_string() in favor of
...
av_get_pix_fmt_string(), added to libavutil/pixdesc.h.
Originally committed as revision 25879 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 12:56:21 +00:00
Michael Niedermayer
b47541c7a3
Change the argument of memory allocation functions from unsigned int to size_t
...
with the next major bump in libavutil.
Originally committed as revision 25871 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 04:00:12 +00:00
Carl Eugen Hoyos
086e997e34
Intel C compiler 12.0 does not suport these attributes: may_alias, force_align_arg_pointer and alloc_size.
...
Originally committed as revision 25716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-10 12:45:41 +00:00
Stefano Sabatini
d2af7205a1
Use hierarchic names convention (prefix them with av_expr) for the
...
eval API.
More grep-friendly and more consistent with the rest of the FFmpeg
API.
Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-08 14:06:49 +00:00
Stefano Sabatini
20fcd0797e
Implement isnan() function evaluation.
...
Originally committed as revision 25666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-03 19:44:00 +00:00
Stefano Sabatini
4cabef0a9d
Make strmatch() return 1 only if the string compared against the
...
prefix does not contain other characters which may belong to an
identifier.
This allows to distinguish for example to have different constants
with the same prefix (e.g. "foo" and "foobar").
Originally committed as revision 25626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-01 09:34:21 +00:00
Stefano Sabatini
2b59fbe9b1
Add st, ld, while examples/tests.
...
Originally committed as revision 25625 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-01 09:34:18 +00:00
Stefano Sabatini
8bb12e71af
Add examples of unary operators.
...
Originally committed as revision 25624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-01 09:34:15 +00:00
Stefano Sabatini
63b1630356
Fix evaluation of expressions of the form: E1;E2.
...
The pointer to the char ';' has to be increased before to evaluate
";E2".
Originally committed as revision 25623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-01 09:34:12 +00:00
Stefano Sabatini
4ddade62dd
Install libavutil/opt.h, its API is public.
...
Fix issue #2265 .
Originally committed as revision 25420 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-08 23:42:25 +00:00
Ramiro Polla
6f74fb03cd
Check whether compiler supports xmm registers in asm clobber list
...
Originally committed as revision 25362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-06 01:26:13 +00:00
Stefano Sabatini
3a1429ec3c
Update av_cmp_q() documentation after r25338.
...
Originally committed as revision 25340 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-05 08:44:18 +00:00
Michael Niedermayer
59a3bf0e51
Add selftest code for av_cmp_q().
...
Originally committed as revision 25339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-05 01:43:34 +00:00
Michael Niedermayer
dec1126915
Make av_cmp_q() work with infinities and NAN.
...
Originally committed as revision 25338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-05 01:43:31 +00:00
Stefano Sabatini
6b4ed22f75
Make av_d2q() manage the case in which the value to convert is inf.
...
Originally committed as revision 25332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-04 13:41:01 +00:00
İsmail Dönmez
9276bdddca
snowdsp: Explicitly state the operand sizes
...
Fixes compilation with clang's builtin assembler
Patch by İsmail Dönmez, ismail at namtrac dot org
Originally committed as revision 25331 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-04 13:08:13 +00:00
Stefano Sabatini
1405782cf4
Avoid cast of double nan to int.
...
It may cause exceptions on some platform.
Originally committed as revision 25311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-02 09:50:56 +00:00
Måns Rullgård
0795b86174
avassert: add missing #include <stdlib.h>
...
Originally committed as revision 25286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 13:55:20 +00:00
Måns Rullgård
f23ceeb84d
avassert: prettify macro
...
Originally committed as revision 25285 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 13:55:16 +00:00
Måns Rullgård
b64b4134d5
Rename libavutil/assert.h to avassert.h
...
This avoids conflicts with the system assert.h.
Originally committed as revision 25284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 13:55:13 +00:00
Michael Niedermayer
8a47d90b29
Fix av_cmp_q() with negative denominators.
...
Originally committed as revision 25283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 12:00:29 +00:00
Michael Niedermayer
c619572a7b
Fix a typo in the nameing of av_assert0() in currently not compiled code.
...
Originally committed as revision 25279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-30 22:52:29 +00:00
Michael Niedermayer
b926b6282d
av_assert() system.
...
With this the developer can now choose if he wants an assert always enabled or at which
compile time assert level. This can thus replace the #define NDEBUG hacks
Originally committed as revision 25278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-30 21:57:31 +00:00
Stefano Sabatini
584b8edb99
Add missing case for FF_OPT_TYPE_DOUBLE in av_opt_set_defaults2().
...
Originally committed as revision 25265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-29 21:42:03 +00:00
Stefano Sabatini
c85eef4ed8
Move av_set_options_string() from libavfilter to libavutil.
...
Originally committed as revision 25236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 22:09:53 +00:00
Stefano Sabatini
372e288408
Move av_get_token() from libavfilter to libavutil.
...
Originally committed as revision 25225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 16:23:43 +00:00
Stefano Sabatini
be0e596a57
Simplify include, since opt.c is now in libavutil there is no need
...
to use the library path prefix for eval.h.
Originally committed as revision 25220 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 10:34:03 +00:00
Stefano Sabatini
8f1afd3b37
Cosmetics: apply misc style fixes.
...
Originally committed as revision 25219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 10:01:44 +00:00
Stefano Sabatini
41f87daaa3
Bump version and update APIchanges after r25210.
...
Originally committed as revision 25216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 00:30:14 +00:00
Måns Rullgård
3288177150
ARM: change return type of AV_RN16() to unsigned
...
This prevents gcc inserting useless UXTH instructions, at least
in some cases.
Originally committed as revision 25212 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-26 21:01:20 +00:00