Statistics
| Branch: | Revision:

ffmpeg / libavutil @ 08675bb3

# Date Author Comment
08675bb3 05/10/2011 01:15 AM Michael Niedermayer

mem: Choose alignment at compile time depending on AVX enabledness.

Signed-off-by: Michael Niedermayer <>

17354407 05/09/2011 07:23 PM Michael Niedermayer

fifo: use av_freep()

With this change libavutil uses av_freep() everywhere where it makes sense.
Remaining av_free() use in it has the used pointer become inaccessible quickly
soo zeroing makes no sense.
Signed-off-by: Michael Niedermayer <>

51927883 05/09/2011 03:47 PM Michael Niedermayer

avutil: add divide & modulo that round like unsigned ones do that is down.
Signed-off-by: Michael Niedermayer <>

6841c8c5 05/09/2011 02:50 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    log: Fix an oob array read.
    cosmetics: trim trailing whitespace in postproc
    Ban strncpy() it's too easy to misuse.
    psymodel: Remove wrapper functions.
    aacenc: Replace loop counters in aac_encode_frame() with more descriptive 'ch' and 'w'....
847aaec6 05/08/2011 08:34 PM Alex Converse

log: Fix an oob array read.

15695541 05/08/2011 07:49 PM Alex Converse

Ban strncpy() it's too easy to misuse.

299cbe2c 05/08/2011 12:06 PM Baptiste Coudurier

PIX_FMT_422P10 support
Signed-off-by: Michael Niedermayer <>

c8981edd 05/07/2011 02:21 PM Michael Niedermayer

Only add 1 byte to av_malloc(0) when it actually returned NULL
Signed-off-by: Michael Niedermayer <>

91ff05f6 05/07/2011 02:21 PM Michael Niedermayer

Make av_realloc(0) behave like our av_malloc(0)
Signed-off-by: Michael Niedermayer <>

314374e5 05/07/2011 08:34 AM Reimar Döffinger

Use MAP_FAILED to check for mmap failure instead of manually
recreating the value.

e5272e72 05/05/2011 04:38 PM Stefano Sabatini

eval: add sqrt function for computing the square root

10ff2967 05/04/2011 10:52 PM Michael Niedermayer

file: Fix mmap error check.
Signed-off-by: Michael Niedermayer <>

1a5e4fd8 05/04/2011 04:20 AM Alex Converse

Replace strncpy() with av_strlcpy().

3862ebba 05/02/2011 12:58 AM Michael Niedermayer

AVOptions: av_set_string3() allow NULL strings
Signed-off-by: Michael Niedermayer <>

ffb5a0d5 04/30/2011 10:26 PM Michael Niedermayer

Merge commit '85770f2a2651497861ed938efcd0df3696ff5e45'

  • commit '85770f2a2651497861ed938efcd0df3696ff5e45':
    AVOptions: make default_val a union, as proposed in AVOption2.
    Move ff_dynarray_add to lavu and make it public.
    lavf: remove duplicate assignment in avformat_alloc_context....
85770f2a 04/30/2011 06:34 AM Anton Khirnov

AVOptions: make default_val a union, as proposed in AVOption2.

This breaks API and ABI.

0247bdee 04/29/2011 08:46 PM Reinhard Tartler

Fix races in default av_log handler

Prevent competing threads from overwriting (shared) buffers.

Original patch by: Michael Niedermayer <>

e610098e 04/29/2011 06:01 PM Diego Biurrun

bswap.h: Remove disabled code.

35ceaa73 04/29/2011 03:34 PM Anton Khirnov

Move ff_dynarray_add to lavu and make it public.

5a43bd5e 04/29/2011 07:11 AM Anton Khirnov

options: simplify av_find_opt by using av_next_option.

5a36783b 04/29/2011 12:17 AM Michael Niedermayer

Fix all malloc(0) issues
Signed-off-by: Michael Niedermayer <>

e91946ed 04/27/2011 07:36 PM Baptiste Coudurier

Rename y400a to gray8a.
Signed-off-by: Michael Niedermayer <>

d7e5aeba 04/27/2011 01:51 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master: (23 commits)
    ac3enc: correct the flipped sign in the ac3_fixed encoder
    Eliminate pointless '#if 1' statements without matching '#else'.
    Add AVX FFT implementation.
    Increase alignment of av_malloc() as needed by AVX ASM....
e6ff0648 04/26/2011 06:18 PM Diego Biurrun

Eliminate pointless '#if 1' statements without matching '#else'.

13dfce3d 04/26/2011 04:18 PM Vitor Sessak

Increase alignment of av_malloc() as needed by AVX ASM.

Signed-off-by: Reinhard Tartler <>

bebe72f4 04/26/2011 06:38 AM Stefano Sabatini

lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums

Also deprecate av_get_pict_type_char() in favor of
av_get_picture_type_char().

The new enum and av_get_picture_type_char() are defined in libavutil.
This allows the use in libavfilter without the need to link against...

7b376b39 04/24/2011 01:41 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    Handle unicode file names on windows
    rtp: Rename the open/close functions to alloc/free
    Lowercase all ff* program names.
    Refer to ff* tools by their lowercase names.
    NOT Pulled Replace more FFmpeg instances by Libav or ffmpeg....
15919ee4 04/23/2011 12:05 AM Jason Garrett-Glaser

bswap: use native types for av_bwap16().

This prevents a call to bytestream_get_be16() using a movzwl both before
and after the ror instruction, which is obviously inefficient. Arm uses
the same trick also.

Sintel decoding goes from (avg+SD) 9.856 +/- 0.003 to 9.797 +/- 0.003 sec....

22180e7a 04/22/2011 08:21 AM Stefano Sabatini

error: remove symbols which were deprecated before the big bump

The removal was not applied when merging the Libav patches, because
there was still code referencing the symbols.

Signed-off-by: Stefano Sabatini <>

8772156b 04/22/2011 01:54 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    APIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition.
    Introduce slice threads flag.
    FATE: allow forcing thread-type when doing threaded fate runs.
    Use av_log_ask_for_sample() where appropriate....
8d67218b 04/21/2011 02:48 PM Stefano Sabatini

error: sort, pack, and align error code and string definitions

Signed-off-by: Diego Biurrun <>

23d3931a 04/21/2011 11:13 AM Martin Storsjö

Provide a fallback version of the libm function trunc

This fixes compilation on DOS.

Signed-off-by: Martin Storsjö <>

a975dbc8 04/21/2011 05:10 AM Anton Khirnov

error: change AVERROR_EOF value

The current value is masking the POSIX error code EPIPE, which has a
different semantics.

This breaks API.

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

79157f40 04/21/2011 05:10 AM Stefano Sabatini

error: remove AVERROR_NUMEXPECTED

AVERROR_NUMEXPECTED is used only in the image muxer and demuxer, and
has a too much specific meaning, which is better explained through a
log message. Thus it can be replaced by AVERROR.

This breaks API.

Signed-off-by: Stefano Sabatini <>...

58f84639 04/21/2011 05:10 AM Stefano Sabatini

error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c

The new error code is better than AVERROR, which has a
completely different semantics ("No such file or directory").

Signed-off-by: Stefano Sabatini <>...

10d2ae8c 04/21/2011 01:37 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    Makefile: Include dependencies for test tools, too
    Remove a version check in av_log made unnecessary by the big bump.
    update last major version increase dates in APIchanges
    Reduce picture size for yadif....
63de9e7d 04/20/2011 04:19 PM Diego Biurrun

Remove a version check in av_log made unnecessary by the big bump.

efb5fa79 04/20/2011 02:48 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master: (37 commits)
    In avcodec_open(), set return code to an error value only when an error occurs instead of unconditionally at the start of the function.
    lavc: remove reference to opt.h from Makefile.
    prefer avio_check() over url_exist()...
975c2734 04/19/2011 07:50 PM Anton Khirnov

lavu: remove disabled ff_random_get_seed cruft.

488d2b63 04/19/2011 07:50 PM Anton Khirnov

lavu: remove disabled sha1 cruft.

490a022d 04/19/2011 05:04 PM Anton Khirnov

lavu: remove misc disabled cruft

9e5c62c9 04/19/2011 05:04 PM Anton Khirnov

lavu: remove FF_API_OLD_IMAGE_NAMES cruft

516fb5e4 04/19/2011 05:03 PM Anton Khirnov

lavu: remove FF_API_OLD_EVAL_NAMES cruft

139f3ac4 04/18/2011 06:19 PM Anton Khirnov

Bump major versions of all libraries.

They've accumulated enough new APIs and corresponding deprecated cruft.

This breaks API and ABI.

2d2b5a14 04/17/2011 09:59 PM Michael Niedermayer

10l, commit that should have been stashed into the merge.
Signed-off-by: Michael Niedermayer <>

c4079844 04/17/2011 09:43 PM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    ac3dec: fix processing of delta bit allocation information.
    vc1: fix fate-vc1 after previous commit.
    wmv3dec: fix playback of complex WMV3 files using simple_idct.
    make av_dup_packet() more cautious on allocation failures...
6001dad6 04/17/2011 05:31 PM Diego Biurrun

Replace more FFmpeg references by Libav.

256c5b08 04/14/2011 08:35 PM Michael Niedermayer

Fix BE/LE order of pix formats
Signed-off-by: Michael Niedermayer <>

a3a0af4f 04/14/2011 08:14 PM Alexis Ballier

avutil: make aes and sha api public

The functions are already av_ prefixed and sha1 header is already provided.
Install libavutil/{aes,sha}.h

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Luca Barbato <>

ab8cfd45 04/11/2011 02:08 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    avio: add more documentation for AVIOContext.
    Parse sprite data for WMVP and WVP2, and decode sprites for the latter
    Replace outdated info on the FAQ
    Redefine sameq
    pad: fix example explanation...
d4497f6d 04/10/2011 08:33 PM Oskar Arvidsson

Add pixel formats for 9- and 10-bit yuv420p.

Also add support for these formats in libswscale.

Needed for high bit depth h264 decoding.

Signed-off-by: Michael Niedermayer <>

5ae4251c 04/10/2011 07:24 AM Stefano Sabatini

eval: add support for trunc, ceil, and floor functions

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

3028b6ed 04/10/2011 03:02 AM Brad

os: fix OpenBSD/PowerPC compilation

When attempting to re-enable the AltiVec support it was noticed
that we need to undefine _POSIX_C_SOURCE to appease the headers
for ff_get_cpu_flags_ppc() to be able to compile.

Signed-off-by: Luca Barbato <>

73389754 04/10/2011 02:44 AM Peter Ross

pixfmt: add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE

PIX_FMT_BGR48LE is used by PhantomCINE demuxer.

Signed-off-by: Luca Barbato <>

dc410361 04/07/2011 03:54 PM Alexis Ballier

Install libavutil/{aes,sha}.h

Signed-off-by: Michael Niedermayer <>

25601bc5 04/05/2011 01:34 PM Stefano Sabatini

eval: add support for trunc, ceil, and floor functions

Signed-off-by: Stefano Sabatini <>

48ee302e 03/25/2011 01:24 AM Michael Niedermayer

Fix apparently exploitable race condition.
Signed-off-by: Michael Niedermayer <>

0a51362b 03/25/2011 12:16 AM Michael Niedermayer

log:Sanitize string of most control chars before printing.
This may be security relevant depending upon the used terminal.

Signed-off-by: Michael Niedermayer <>

2fd41c90 03/24/2011 01:16 AM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

  • newdev/master:
    avio: make udp_set_remote_url/get_local_port internal.
    asfdec: also subtract preroll when reading simple index object
    matroskaenc: remove a variable that's unused after bc17bd9.
    avio: cosmetics - nicer vertical alignment....
820818a3 03/23/2011 12:39 PM Mans Rullgard

Remove unnecessary icc version checks

With unknown attribute warnings disabled, these checks are no
longer needed. Removing them improves readability while having
no effect on generated code.

Signed-off-by: Mans Rullgard <>

4fa0e247 03/23/2011 01:42 AM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

  • newdev/master: (33 commits)
    Fix an infinite loop when RoQ encoded generated a frame with a size greater than the maximum valid size.
    Add kbdwin.o to AC3 decoder
    Detect byte-swapped AC-3 and support decoding it directly....
d375c104 03/22/2011 09:36 PM Michael Niedermayer

Fake-Merge remote-tracking branch 'ffmpeg-mt/master'

45ed8225 03/22/2011 01:11 PM Justin Ruggles

cosmetics: indentation

eba586b0 03/22/2011 01:11 PM Justin Ruggles

Add a CPU flag for the Atom processor.

The Atom has SSSE3 support, which is useful in many cases, but sometimes the
SSSE3 version is slower than the SSE2 equivalent on the Atom, but is generally
faster on other processors supporting SSSE3. This flag allows for selectively...

60c68c0a 03/21/2011 11:49 AM Peter Ross

Remove unused pixel format (PIX_FMT_UNUSED) and swap PIX_FMT_BGR48LE and PIX_FMT_BGR48BE enum order

Signed-off-by: Michael Niedermayer <>

43dc31f7 03/19/2011 04:55 PM Peter Ross

Add unused pixel format (PIX_FMT_UNUSED) to make PIX_FMT_BGR48BE an odd-valued enumeration

This is required for the isBE() macro internal to libswscale.

Signed-off-by: Michael Niedermayer <>

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

e528cdac 03/17/2011 04:26 PM Michael Niedermayer

Revert "replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION"

This reverts commit 29ba091136a5e04574f7bfc1b17536c923958f6f.

0cb88628 03/17/2011 04:26 PM Michael Niedermayer

Revert "use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*"

This reverts commit a03be6e1ba4cbf9984b0bbdb674704bbb2da6713.

0fecf264 03/17/2011 04:22 PM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

Conflicts:
Changelog
doc/APIchanges
doc/optimization.txt
libavformat/avio.h

Merged-by: Michael Niedermayer <>

e309fdc7 03/17/2011 02:11 PM Peter Ross

Add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Signed-off-by: Michael Niedermayer <>

a03be6e1 03/16/2011 08:54 PM Janne Grunau

use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*

29ba0911 03/16/2011 08:54 PM Janne Grunau

replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION

also update the multiple inclusion guards in config.h|mak

6947b0c4 03/15/2011 03:48 PM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

Merged-by: Michael Niedermayer <>

bafa4dd3 03/15/2011 12:09 PM Nicolas George

Add AVERROR_EXIT.

This is different from AVERROR because calls that fail with EINTR
should usually be restarted.

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

d667be2c 03/02/2011 11:25 PM Carl Eugen Hoyos

Attribute used is correctly supported by the Intel C compiler since version 11.1.

a5b13b14 03/02/2011 12:38 PM Carl Eugen Hoyos

Use macro __INTEL_COMPILER instead of __ICC.

__ICC is not supported on all platforms, this is an Intel documentation
bug that is supposed to be fixed in a future release.
(Intel issue 612289)

f1f79211 02/22/2011 01:38 AM Mans Rullgard

x86: use raw opcode for xgetbv instruction

This allows the CPU detection to work with assemblers not supporting
the xgetbv mnemonic. These include clang and some BSD versions.

All AVX code will be written for yasm, where the main assembler
is not involved....

cdeba2de 02/20/2011 06:05 PM Mans Rullgard

x86: check for AVX support

This adds configure and runtime checks for AVX support on x86 CPUs.

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

ef669538 02/20/2011 05:31 PM Mans Rullgard

x86: use raw opcode for xgetbv instruction

This allows the CPU detection to work with assemblers not supporting
the xgetbv mnemonic. These include clang and some BSD versions.

All AVX code will be written for yasm, where the main assembler
is not involved....

87f1355f 02/20/2011 01:20 PM Mans Rullgard

x86: check for AVX support

This adds configure and runtime checks for AVX support on x86 CPUs.

Signed-off-by: Mans Rullgard <>

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

eb3755a5 02/17/2011 11:25 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.

09d171b9 02/17/2011 02:40 PM Anton Khirnov

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

Signed-off-by: Janne Grunau <>

ab0287fc 02/17/2011 02:35 PM Anton Khirnov

Move find_info_tag to lavu and add av_ prefix to it

Signed-off-by: Janne Grunau <>

f6c7375a 02/16/2011 11:39 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

737eb597 02/15/2011 03:18 PM Reinhard Tartler

Merge libavcore into libavutil

It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody...

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)

74b1f968 02/11/2011 09:58 PM Justin Ruggles

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

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

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

37b00b47 02/09/2011 02:17 PM 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)

523d9407 02/04/2011 10:00 AM Clément Bœsch

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

Signed-off-by: Mans Rullgard <>

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

dc75d6db 02/03/2011 01:36 AM Clément Bœsch

Avoid pointless check before calling free

Signed-off-by: Mans Rullgard <>