| Branch: | Revision:

ffmpeg / libavutil @ 545dc699

# Date Author Comment
545dc699 02/18/2011 06:52 PM Jason Garrett-Glaser

Force inlining of avutil common routines

On some versions of gcc, these weren't always getting inlined due to hitting
the inline cap limit in some files. This is generally bad, as most of these
functions are smaller inlined than not.
(cherry picked from commit eb3755a5aa65da685d81399cfae4bd35e4a178b6)

0ef52334 02/18/2011 06:52 PM Anton Khirnov

lavf, lavu: bump minor versions and add an APIChanges entry for av_ prefixes

Signed-off-by: Janne Grunau <>
(cherry picked from commit 09d171b98879f58be1a766d5f277e131b18e98a1)

1b98107c 02/18/2011 06:52 PM Anton Khirnov

Move find_info_tag to lavu and add av_ prefix to it

Signed-off-by: Janne Grunau <>
(cherry picked from commit ab0287fcbdebc8ff416214535d7ee8424406990e)

40c3fe2c 02/18/2011 06:52 PM Stefano Sabatini

Deprecate parse_date() in favor of av_parse_time().

The new av_parse_time() is created in libavutil/parseutils.h, all the
internal functions used by parse_date are moved to
libavutil/parseutils.c and made static.

Signed-off-by: Mans Rullgard <>...

7ffe76e5 02/16/2011 10:00 PM Reinhard Tartler

Merge libavcore into libavutil

Done to keep ABI compatible. Otherwise this is just silly

b7195837 02/12/2011 11:54 PM Justin Ruggles

Add check for Athlon64 and similar AMD processors with slow SSE2.

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit 74b1f96859eb967222fcb3eb4c72d949b5165a89)

b38f008e 02/11/2011 01:53 AM Alexander Strange

Frame-based multithreading framework using pthreads

See doc/multithreading.txt for details on use in codecs.

Signed-off-by: Ronald S. Bultje <>

b9004bd5 02/06/2011 07:31 PM Clément Bœsch

Remove a few if (p) av_freep(&p) forms

Signed-off-by: Mans Rullgard <>
(cherry picked from commit 523d9407d57e9210428b6d962f0ebf48aae55638)

0c8eb72e 02/04/2011 02:10 AM Clément Bœsch

Avoid pointless check before calling free

Signed-off-by: Mans Rullgard <>
(cherry picked from commit dc75d6dbf2af3c03b33d3159e1dadccf22c076ea)

e921bd57 02/04/2011 02:09 AM Anton Khirnov

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 <>

0374152f 01/31/2011 05:25 PM Mans Rullgard

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 <>
(cherry picked from commit 365e3c7878e4e821d5dec922d2d51f92ce13f926)

9ef5a9de 01/30/2011 02:41 AM Luca Barbato

Replace dprintf with av_dlog

dprintf clashes with POSIX.1-2008
(cherry picked from commit dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4)

4c56b4bc 01/26/2011 02:43 AM Mans Rullgard

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 <>
(cherry picked from commit e781c4e6ff0b93db1ebc0ebe6983b38490117a98)

d112aa5a 01/26/2011 02:43 AM Mans Rullgard

MIPS: use inline asm only when supported by compiler
(cherry picked from commit 7a5a168abe36c91087e58d89262a3658d21ea2cc)

7d508260 01/24/2011 05:52 PM Reimar Döffinger

Handle input or output len of 0 properly in lzo decoder.

ec5f5719 01/18/2011 08:48 PM Mans Rullgard

cpu-test: include stdio.h only for test prog

324e7ee2 01/18/2011 08:48 PM Mans Rullgard

Use INFINITY and NAN macros instead of 1/0 and 0/0

2c3589bf 01/18/2011 08:32 PM Janne Grunau

consolidate .gitignore patters into a single file

Signed-off-by: Janne Grunau <>

348b8218 01/17/2011 02:50 PM Janne Grunau

convert svn:ignore properties to .gitignore files

Signed-off-by: Janne Grunau <>

73f6d31e 01/05/2011 05:16 AM Daniel Verkamp

Win32 support for av_file_map()

Originally committed as revision 26221 to svn://

dfaa9f3c 01/01/2011 08:08 PM Daniel Verkamp

Recognize FFMPEG_FORCE_NOCOLOR environment variable on Win32

Fixes issue 2461

Originally committed as revision 26186 to svn://

f02cbc45 12/22/2010 04:16 PM Stefano Sabatini

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://

1b31037d 12/22/2010 03:32 PM Stefano Sabatini

Replace lstat() with stat() in av_file_map(). The lstat() use was wrong.

Originally committed as revision 26074 to svn://

0328b9ea 12/22/2010 02:13 PM Stefano Sabatini

Add av_file_map() and av_file_unmap() functions.

Originally committed as revision 26073 to svn://

0bc55f5d 12/19/2010 09:01 AM Nicolas George


Originally committed as revision 26056 to svn://

e3c011c8 12/07/2010 03:25 PM Ramiro Polla

fix building of cpu-test by including required header

Originally committed as revision 25917 to svn://

3011ecde 12/06/2010 09:47 PM Stefano Sabatini

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://

12998340 12/05/2010 01:56 PM Etienne Buira

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://

bb4afa13 12/04/2010 12:56 PM Stefano Sabatini

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://

b47541c7 12/04/2010 04:00 AM Michael Niedermayer

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://

086e997e 11/10/2010 12:45 PM Carl Eugen Hoyos

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://

d2af7205 11/08/2010 02:06 PM Stefano Sabatini

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

Originally committed as revision 25708 to svn://

20fcd079 11/03/2010 07:44 PM Stefano Sabatini

Implement isnan() function evaluation.

Originally committed as revision 25666 to svn://

4cabef0a 11/01/2010 09:34 AM Stefano Sabatini

Make strmatch() return 1 only if the string compared against the
prefix does not contain other characters which may belong to an

This allows to distinguish for example to have different constants
with the same prefix (e.g. "foo" and "foobar")....

2b59fbe9 11/01/2010 09:34 AM Stefano Sabatini

Add st, ld, while examples/tests.

Originally committed as revision 25625 to svn://

8bb12e71 11/01/2010 09:34 AM Stefano Sabatini

Add examples of unary operators.

Originally committed as revision 25624 to svn://

63b16303 11/01/2010 09:34 AM Stefano Sabatini

Fix evaluation of expressions of the form: E1;E2.

The pointer to the char ';' has to be increased before to evaluate

Originally committed as revision 25623 to svn://

4ddade62 10/08/2010 11:42 PM Stefano Sabatini

Install libavutil/opt.h, its API is public.

Fix issue #2265.

Originally committed as revision 25420 to svn://

6f74fb03 10/06/2010 01:26 AM Ramiro Polla

Check whether compiler supports xmm registers in asm clobber list

Originally committed as revision 25362 to svn://

3a1429ec 10/05/2010 08:44 AM Stefano Sabatini

Update av_cmp_q() documentation after r25338.

Originally committed as revision 25340 to svn://

59a3bf0e 10/05/2010 01:43 AM Michael Niedermayer

Add selftest code for av_cmp_q().

Originally committed as revision 25339 to svn://

dec11269 10/05/2010 01:43 AM Michael Niedermayer

Make av_cmp_q() work with infinities and NAN.

Originally committed as revision 25338 to svn://

6b4ed22f 10/04/2010 01:41 PM Stefano Sabatini

Make av_d2q() manage the case in which the value to convert is inf.

Originally committed as revision 25332 to svn://

9276bddd 10/04/2010 01:08 PM İsmail Dönmez

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://

1405782c 10/02/2010 09:50 AM Stefano Sabatini

Avoid cast of double nan to int.
It may cause exceptions on some platform.

Originally committed as revision 25311 to svn://

0795b861 10/01/2010 01:55 PM Måns Rullgård

avassert: add missing #include <stdlib.h>

Originally committed as revision 25286 to svn://

f23ceeb8 10/01/2010 01:55 PM Måns Rullgård

avassert: prettify macro

Originally committed as revision 25285 to svn://

b64b4134 10/01/2010 01:55 PM Måns Rullgård

Rename libavutil/assert.h to avassert.h

This avoids conflicts with the system assert.h.

Originally committed as revision 25284 to svn://

8a47d90b 10/01/2010 12:00 PM Michael Niedermayer

Fix av_cmp_q() with negative denominators.

Originally committed as revision 25283 to svn://

c619572a 09/30/2010 10:52 PM Michael Niedermayer

Fix a typo in the nameing of av_assert0() in currently not compiled code.

Originally committed as revision 25279 to svn://

b926b628 09/30/2010 09:57 PM Michael Niedermayer

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://

584b8edb 09/29/2010 09:42 PM Stefano Sabatini

Add missing case for FF_OPT_TYPE_DOUBLE in av_opt_set_defaults2().

Originally committed as revision 25265 to svn://

c85eef4e 09/27/2010 10:09 PM Stefano Sabatini

Move av_set_options_string() from libavfilter to libavutil.

Originally committed as revision 25236 to svn://

372e2884 09/27/2010 04:23 PM Stefano Sabatini

Move av_get_token() from libavfilter to libavutil.

Originally committed as revision 25225 to svn://

be0e596a 09/27/2010 10:34 AM Stefano Sabatini

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://

8f1afd3b 09/27/2010 10:01 AM Stefano Sabatini

Cosmetics: apply misc style fixes.

Originally committed as revision 25219 to svn://

41f87daa 09/27/2010 12:30 AM Stefano Sabatini

Bump version and update APIchanges after r25210.

Originally committed as revision 25216 to svn://

32881771 09/26/2010 09:01 PM Måns Rullgård

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://

6ed04040 09/26/2010 02:25 PM Michael Niedermayer

Move AVOptions from libavcodec to libavutil

Originally committed as revision 25210 to svn://

d7cd001f 09/24/2010 04:18 PM Michael Niedermayer


Originally committed as revision 25178 to svn://

8a190533 09/24/2010 04:18 PM Michael Niedermayer

Cosmetic (rename detect_repeats to is_atty which matches the truth)

Originally committed as revision 25177 to svn://

1c1c80f0 09/24/2010 03:37 PM Michael Niedermayer

2nd try to fix av_log() repeated detection

Originally committed as revision 25174 to svn://

bc6f0af2 09/14/2010 02:45 PM Tomas Härdin

Add av_popcount() to libavutil/common.h and bump minor version

Originally committed as revision 25120 to svn://

c157fe63 09/14/2010 12:17 AM Michael Niedermayer

Limit av_log repeat detection to terminals so as to avoid filling files with
lots of mess.

Originally committed as revision 25117 to svn://

4660143a 09/12/2010 10:00 PM Stefano Sabatini

Apply minor simplification in av_read_image_line().

Originally committed as revision 25112 to svn://

78b19cf0 09/12/2010 09:39 PM Måns Rullgård

pixdesc: indent

Originally committed as revision 25111 to svn://

9525243f 09/12/2010 09:39 PM Måns Rullgård

pixdesc: use 8-bit accesses when possible in av_read/write_image_line()

This fixes out of bounds accesses for big endian formats and should be
a little faster.

Originally committed as revision 25110 to svn://

4b9ac6de 09/12/2010 09:31 PM Stefano Sabatini

Cosmetics: use x ? y : z construct and merge intialization and
definition for the val variable in av_read_image_line(). Simplify.

Originally committed as revision 25109 to svn://

65d45cea 09/09/2010 07:40 PM Måns Rullgård

Add missing #include <string.h> in x86/cpu.c

Originally committed as revision 25088 to svn://

a3f0d2b9 09/09/2010 06:51 PM Måns Rullgård

Cache detected CPU flags

Originally committed as revision 25085 to svn://

9275438a 09/09/2010 06:51 PM Måns Rullgård

Clean up av_get_cpu_flag()

Instead of defining functions in per-arch header files included
by the main cpu.c, define them normally and call them from the
generic one.

Originally committed as revision 25084 to svn://

c6c98d08 09/08/2010 03:07 PM Stefano Sabatini

Move mm_support() from libavcodec to libavutil, make it a public
function and rename it to av_get_cpu_flags().

Originally committed as revision 25076 to svn://

e778e50f 09/06/2010 12:04 AM Stefano Sabatini

Sort AV_CPU_FLAG* by value.

Originally committed as revision 25047 to svn://

d593b4ed 09/06/2010 12:04 AM Stefano Sabatini

Fix typo.

Originally committed as revision 25046 to svn://

7160bb71 09/04/2010 09:59 AM Stefano Sabatini

Rename FF_MM_ symbols related to CPU features flags as AV_CPU_FLAG_
symbols, and move them from libavcodec/avcodec.h to libavutil/cpu.h.

Originally committed as revision 25040 to svn://

573af754 08/23/2010 03:31 PM Benoit Fouet

Add missing parentheses to AV_NE macro.

Originally committed as revision 24885 to svn://

6a36facc 08/17/2010 06:48 PM Måns Rullgård

Fix out-of-tree build

Originally committed as revision 24816 to svn://

4f2d2e4e 08/17/2010 06:25 PM Stefano Sabatini

Define macro AV_NE() and use it in libavdevice.

Help further refactoring.

Originally committed as revision 24814 to svn://

fd3064b6 07/28/2010 12:08 PM Michael Niedermayer

Make sure "Last message repeated" is printed.

Originally committed as revision 24573 to svn://

44852477 07/22/2010 10:05 PM Stefano Sabatini

Add the M_PHI constant, contains an approximation of the golden ratio
irrational number.

Originally committed as revision 24439 to svn://

3fc548df 07/21/2010 12:37 PM Diego Pettenò

Make ff_inverse stay with libavutil, and optional copy it to libavcodec.

The ff_inverse table is used by FASTDIV macro, defined in libavutil, but up
to now the table was defined only in libavcodec.

After this change, the main copy of ff_inverse is part of libavutil (just...

eedc4ee5 07/17/2010 04:35 PM Carl Eugen Hoyos

Use attribute force_align_arg_pointer only on x86_32.

Originally committed as revision 24290 to svn://

617d56ca 07/11/2010 11:49 AM Stefano Sabatini

Update lavu minor and add APIchanges entry after r24174 (add bswap.h
and intreadwrite.h API public interface).

Originally committed as revision 24190 to svn://

b91d08f4 07/10/2010 10:22 PM Måns Rullgård

Install bswap.h and intreadwrite.h

Originally committed as revision 24174 to svn://

86816692 07/10/2010 10:22 PM Måns Rullgård

Make intreadwrite.h installation-safe

Originally committed as revision 24173 to svn://

1fc81e73 07/10/2010 10:21 PM Måns Rullgård

Make bswap.h safe to install as public API

Originally committed as revision 24171 to svn://

8fc0162a 07/10/2010 10:12 PM Måns Rullgård

Add av_ prefix to bswap macros

Originally committed as revision 24170 to svn://

e6b22522 07/10/2010 10:09 PM Måns Rullgård

bswap: change ME to NE in macro names

Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.

Originally committed as revision 24169 to svn://

7918375f 07/10/2010 12:40 AM Måns Rullgård

intreadwrite: common.h is not needed, attributes.h is sufficient

Originally committed as revision 24155 to svn://

f4d80ecb 07/10/2010 12:40 AM Måns Rullgård

lfg: add missing includes

Originally committed as revision 24154 to svn://

47bfd50a 07/10/2010 12:40 AM Måns Rullgård

pixdesc: add missing includes

Originally committed as revision 24153 to svn://

9699a96a 07/08/2010 10:13 PM Stefano Sabatini

Bump minor after read/write_line() to av_read/write_image_line()
rename, done in r24101.

Originally committed as revision 24128 to svn://

ee435580 07/08/2010 10:05 PM Stefano Sabatini

Reindent after r24101.

Originally committed as revision 24126 to svn://

6a522c49 07/08/2010 06:13 PM Michael Niedermayer

Fix infinite loop with clock() returning (clock_t)-1.

Originally committed as revision 24116 to svn://

b65c1ccf 07/08/2010 05:49 PM Michael Niedermayer

Change i to unsigned in get_generic_seed().
This is clearer than comparing against an unsigned number to force an unsigned
comparison that we need.

Originally committed as revision 24114 to svn://

e51f0496 07/08/2010 01:35 PM Diego Biurrun

Restore array sizes in doxygen parameter names.

Originally committed as revision 24108 to svn://

c84d5aa7 07/07/2010 11:47 PM Michael Niedermayer

get_generic_seed() for the cases without /dev/random and AV_READ_TIME

Originally committed as revision 24102 to svn://

ce1cd1cb 07/07/2010 11:41 PM Stefano Sabatini

Rename read/write_line() to av_read/write_image_line().

The old names were not av_ prefixed, and they were causing linking
failure on many platforms. The new names are also more descriptive.

Patch by Stefano Sabatini.

Originally committed as revision 24101 to svn://

9077e29e 07/07/2010 05:27 PM Måns Rullgård

ARM: optimised integer clip functions

Originally committed as revision 24089 to svn://

edd7fa82 07/07/2010 05:27 PM Måns Rullgård

ARM: intmath.h cosmetics

Originally committed as revision 24088 to svn://