Statistics
| Branch: | Revision:

ffmpeg @ ca402f32

# Date Author Comment
ca402f32 04/14/2011 11:56 AM Max Horn

handle malloc failures in ff_get_wav_header

ff_get_wav_header is reading data from a WAVE file and then uses it
(without validation) to malloc a buffer. It then proceeded to read
data into the buffer, without verifying that the allocation succeeded.

To address this, change ff_get_wav_header to return an error if...

ad4c5034 04/14/2011 11:55 AM Max Horn

add xWMA demuxer

Signed-off-by: Luca Barbato <>

0a962e61 04/14/2011 11:51 AM Rudolf Polzer

mpegts: force the default timebase

The mpegts muxer does not set the stream time base using
av_set_pts_info, but expects it to have the default value of 1/90000.
If the calling code changes stream pts before writing the header,
other muxers override the time base at that point (like mpegenc.c).

302152d4 04/14/2011 06:34 AM Martin Storsjö

libavcodec: Bump micro after adding the dtx AVOptions

Signed-off-by: Martin Storsjö <>

651b276e 04/13/2011 09:31 PM Martin Storsjö

libopencore-amr, libvo-amrwbenc: Allow enabling DTX via private AVOptions

DTX, discontinuous transmission, allows emitting frames with
comfort noise when no voice is detected in the input audio.

Signed-off-by: Martin Storsjö <>

3dd82afc 04/13/2011 09:31 PM Martin Storsjö

libopencore-amr, libvo-amrwbenc: Only check the bitrate when changed

Also rename the incorrectly named enc_bitrate to enc_mode, use the
enc_bitrate variable for storing the last chosen bitrate.

This avoids continuous warning log messages if not using an...

70739381 04/13/2011 09:31 PM Martin Storsjö

libopencore-amr, libvo-amrwbenc: Find the closest matching bitrate

Dynamically print the supported bitrates from the local table,
instead of using a hardcoded log message.

Signed-off-by: Martin Storsjö <>

957635ba 04/13/2011 07:38 PM Martin Storsjö

libvo-*: Fix up the long codec names

Include VisualOn to clarify the codec name, but remove the
actual library name from the user-friendly description.
Also mention Android, to clarify which VisualOn implementation
this refers to, since they do sell other variants of the same...

567ad0e3 04/13/2011 07:14 PM Martin Storsjö

libavcodec: Mark AVCodec->priv_class const

This avoids warnings of this kind, everywhere priv_class
is initialized:

warning: initialization discards qualifiers from pointer target type

Signed-off-by: Martin Storsjö <>

0e1a5434 04/13/2011 03:24 PM Luca Barbato

swscale: Factorize FAST_BGR2YV12 definition.

It is used only for x86 so it will eventually be moved with that code
into the x86 arch subdirectory.

2d326793 04/13/2011 12:43 PM Martin Storsjö

libvo-aacenc: Only produce extradata if the global header flag is set

Signed-off-by: Martin Storsjö <>

451d566f 04/13/2011 11:50 AM Anton Khirnov

lavf: postpone removal of public metadata conversion API

It's been deprecated only a few months ago, long after 0.6.

c7767327 04/13/2011 11:50 AM Anton Khirnov

lavc: postpone removal of request_channels

No decoder uses the supposed replacement, request_channel_layout, yet.

d6ead39e 04/13/2011 11:50 AM Anton Khirnov

lavc: postpone removal of audioconvert and sample_fmt wrappers

Those were moved to libavutil only recently.

548e62c5 04/13/2011 11:50 AM Anton Khirnov

lavf: postpone removal of deprecated avio functions

They've been deprecated very recently.

882221af 04/13/2011 10:00 AM Martin Storsjö

libopencore-amr: Cosmetics: Rewrap and align

Signed-off-by: Martin Storsjö <>

02c63a10 04/13/2011 10:00 AM Martin Storsjö

libopencore-amr, libvo-amrbwenc: Rename variables and functions

Avoid camelCase names for functions and variables.

Signed-off-by: Martin Storsjö <>

9b9c6405 04/13/2011 10:00 AM Martin Storsjö

libopencore-amr: Convert commented out debug logging into av_dlog

Also add the avctx as logging context.

Signed-off-by: Martin Storsjö <>

89e7e640 04/13/2011 09:59 AM Martin Storsjö

libopencore-amr: Remove an unused state variable

Signed-off-by: Martin Storsjö <>

5d211e03 04/13/2011 08:30 AM Martin Storsjö

libvo-amrwbenc: Don't explicitly store bitrate modes in the bitrate table

The bitrate modes are equal to the array indices.

Signed-off-by: Martin Storsjö <>

0e03f94d 04/13/2011 08:30 AM Martin Storsjö

libopencore-amr: Remove a useless local variable

Signed-off-by: Martin Storsjö <>

c48ce4eb 04/13/2011 08:30 AM Martin Storsjö

libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const

Signed-off-by: Martin Storsjö <>

900a129f 04/13/2011 08:30 AM Martin Storsjö

libopencore-amr, libvo-amrwbenc: Return proper error codes in most places

Signed-off-by: Martin Storsjö <>

a8ec07c9 04/13/2011 08:30 AM Martin Storsjö

libopencore-amr: Don't print carriage returns in log messages

Signed-off-by: Martin Storsjö <>

58733141 04/13/2011 08:30 AM Martin Storsjö

libopencore-amr: Remove an old workaround for libamr header weirdness

Signed-off-by: Martin Storsjö <>

57ddffe8 04/13/2011 08:30 AM Martin Storsjö

libopencore-amr: Make the opaque encoder pointer a void*

Signed-off-by: Martin Storsjö <>

dbff4da9 04/13/2011 08:30 AM Martin Storsjö

libopencore-amr: Remove unused code fragments

This parts are heritage from the encoder part from the old
libamr code removed in SVN rev 19365.

Signed-off-by: Martin Storsjö <>

a92a7ddc 04/13/2011 08:30 AM Martin Storsjö

applehttp: Only check the discard flags if v->ctx actually is initialized

This code could be executed if the demuxer reads more than one
segment before returning from av_open_input_stream.

Signed-off-by: Martin Storsjö <>

4c362a52 04/13/2011 08:01 AM Luca Barbato

doc: update developer guide

Refer to the current submission policy and refer to FATE in the
Regression Test section.

86a89ae3 04/13/2011 05:41 AM Anton Khirnov

lavf: bump minor and add an APIChanges entry for the last avio changes

4bde56d1 04/13/2011 05:38 AM Anton Khirnov

avio: deprecate url_exist in favor of avio_check.

31317656 04/13/2011 05:38 AM Stefano Sabatini

file: implement url_check() callback in the file and pipe protocols

Signed-off-by: Anton Khirnov <>

175389c8 04/13/2011 05:38 AM Stefano Sabatini

avio: add avio_check()

The new function is more flexible than url_exist(), as it allows to
specify which access flags to check, and does not require an explicit
open of the checked resource.

Signed-off-by: Anton Khirnov <>

cbea3ac8 04/13/2011 05:36 AM Anton Khirnov

avio: left-shift AVIO_ flags on next bump

Now AVIO_RDONLY is defined as 0, so it's not usable as a flag.

d2940155 04/12/2011 11:46 PM Alberto Delmas

Check for successful h263 init in msmpeg4 init

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

96573c0d 04/12/2011 11:06 PM Vitor Sessak

lavf/utils.c: Order packets with identical PTS by stream index.

This allows for more reproducible results when using multi-threading.

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

578d6861 04/12/2011 08:08 PM Martin Storsjö

flvdec: Allow parsing keyframes metadata without seeking in most cases

Stop the avio input at a point where amf_parse_object can
continue parsing the end of the object seamlessly, when all
data is available.

If unsupported data is encountered within the keyframes object,...

f3e3f28e 04/12/2011 05:17 PM Luca Barbato

Error out if vaapi is not found

Make the behaviour consistent with the other external deps.

Signed-off-by: Anton Khirnov <>

ff1ec0c3 04/12/2011 05:17 PM Anton Khirnov

avio: undeprecate av_url_read_fseek/fpause under nicer names

It seems their replacements won't be ready anytime soon.

c5e03ceb 04/12/2011 09:52 AM Martin Storsjö

libvo-*: Don't use deprecated sample format names and enum names

Signed-off-by: Martin Storsjö <>

b5304f7b 04/12/2011 09:38 AM Kharkov Alexander

flvdec: Fix support for flvtool2 "keyframes based" generated index

Current keyframes data parser unconditionally rewind metadata to
the end at the end of function. As result ALL metadata located
after keyframes index not parsed, and as metadata object can have...

c41eb2ad 04/12/2011 09:38 AM Martin Storsjö

libavcodec: Use "const enum AVSampleFormat[]" in AVCodec initialization

Signed-off-by: Martin Storsjö <>

2f072b55 04/12/2011 04:47 AM Alex Converse

Fix the conversion of AV_SAMPLE_FMT_FLT and _DBL to AV_SAMPLE_FMT_S32.

(1<<31) is undefined and seems to be evaluated by gcc to -2^31 when
these formulae require 2^31.

These conversions still need fate tests.

187a5379 04/12/2011 04:47 AM Alex Converse

Convert some undefined 1<<31 shifts into 1U<<31.

According to ISO 9899:1999 S 6.5.7/4:

The result of E1 << E2 is E1 left-shifted E2 bit positions; vacated bits
are filled with zeros. If E1 has an unsigned type, the value of the
result is E1× 2^E2, reduced modulo one more than the maximum value...

db46be01 04/11/2011 12:18 PM Diego Biurrun

Add unconditional return statement to yuva420_rgb32_MMX() / yuva420_bgr32_MMX().

When HAVE_7REGS was not defined these functions had an empty body
causing the following warnings during compilation.
In file included from libswscale/x86/yuv2rgb_mmx.c:58:
libswscale/x86/yuv2rgb_template.c: In function ‘yuva420_rgb32_MMX’:...

70ad9842 04/11/2011 12:18 PM Diego Biurrun

Fix compilation of timefilter test program.

The printf function is forbidden in library code, but not in test programs,
so #undefine the printf macro that disables the system printf function.

Signed-off-by: Diego Biurrun <>

f502ff3f 04/11/2011 11:55 AM Martin Storsjö

Add support for AMR-WB encoding via libvo-amrwbenc

The wrapper code is based on the libamr wrapper removed in SVN rev 19365.

Signed-off-by: Martin Storsjö <>

d89e738a 04/11/2011 11:55 AM Martin Storsjö

Add an AAC encoder by using the libvo-aacenc library

Signed-off-by: Martin Storsjö <>

029f966c 04/11/2011 08:35 AM Martin Storsjö

g722: Return 8 bits per sample for g722 in av_get_bits_per_sample

This fixes a failing assert in ff_raw_read_header (in
fate-g722dec-1), where bits_per_coded_sample is set using this
function and is required to have a positive value.

Signed-off-by: Martin Storsjö <>

d1c5fdf8 04/10/2011 12:31 PM Anton Khirnov

avio: add more documentation for AVIOContext.

768c5251 04/10/2011 08:07 AM Alberto Delmás

Parse sprite data for WMVP and WVP2, and decode sprites for the latter

Signed-off-by: Anton Khirnov <>

70ff5573 04/10/2011 08:07 AM Lou Logan

Replace outdated info on the FAQ

FAQ could use some work. This updates a few little details.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

f8de11cf 04/10/2011 07:27 AM Lou Logan

Redefine sameq

I think the documentation of sameq is causing confusion and misuse of
this option.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

aeefbf61 04/10/2011 07:27 AM Stefano Sabatini

pad: fix example explanation

"row" and "column" term positions in the explanation were inverted.

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

3eccfaa0 04/10/2011 07:26 AM Stefano Sabatini

gradfun: add notice from the MPlayer manual

Add notice telling that the filter is designed for playback only.

Signed-off-by: Anton Khirnov <>

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

2fd8756b 04/10/2011 07:22 AM Stefano Sabatini

documentation: add setdar and setsar description to filters.texi

Signed-off-by: Anton Khirnov <>

c1a9012d 04/10/2011 05:41 AM Anton Khirnov

avio: document some members of AVIOContext.

e782a0c6 04/10/2011 05:41 AM Anton Khirnov

avio: document avio_close().

893816ba 04/10/2011 05:41 AM Anton Khirnov

avio: cosmetics, vertically align comments.

72d4405b 04/10/2011 05:41 AM Anton Khirnov

avio: cosmetics, group the reading functions.

37744e32 04/10/2011 05:41 AM Anton Khirnov

avio: cosmetics, merge all the FF_API_OLD_AVIO blocks.

fafa7290 04/10/2011 05:41 AM Anton Khirnov

avio: cosmetics, move AVIOContext to start of the file.

6084ee5d 04/10/2011 05:41 AM Anton Khirnov

avio: update file header.

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

47dec30e 04/10/2011 02:33 AM Clément Bœsch

oggdec: fix demuxing chained audio streams

Chained ogg served by icecast and mpd should demux
properly now.

Fixes issue2337

Signed-off-by: Luca Barbato <>

cbfa93ac 04/10/2011 02:31 AM Compn

fix typo

Signed-off-by: Luca Barbato <>

347b375a 04/10/2011 12:32 AM Alex Converse

daud: Don't write packets that are too large to have their size expressed in the bytestream.

cf39b461 04/09/2011 12:23 PM Alexander Strange

pthread: validate_thread_parameters() ignored slice-threading being intentionally off

The thread_type API allows you to request only FF_THREAD_FRAME (instead of
FRAME | SLICE), but it was being ignored.
We don't implement both of them at the same time, so there isn't an effect...

f82163cf 04/09/2011 12:23 PM Reimar Döffinger

Use consistent condition for whether to run slice-threading execute function.

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

17ca374c 04/09/2011 11:35 AM Anton Khirnov

avformat.h: fix a misplaced #endif

da21440d 04/09/2011 10:02 AM Gwenole Beauchesne

vaapi: cope with VA-API 0.32, i.e. fix VC-1 decoding on Sandy Bridge.

(cherry picked from commit a18e7b4fb77d3799cf21110b5e6dda4691a295b3)

Signed-off-by: Reinhard Tartler <>

09ce8462 04/09/2011 10:00 AM Gwenole Beauchesne

vaapi: filter out DELAYED_PIC_REF flag to determine field.

This fixes ticket #23.

(cherry picked from commit 621f4c98df4ee9fd604a614f31e09eef9dd7d3ca)

Signed-off-by: Reinhard Tartler <>

0c68c804 04/08/2011 07:00 PM Anton Khirnov

lavf: bump minor and add an APIChanges entry for avformat cleanup

3ee53dab 04/08/2011 06:58 PM Anton Khirnov

lavf: get rid of ffm-specific stuff in avformat.h

cdc6a87f 04/08/2011 03:48 PM Anton Khirnov

avio: deprecate av_protocol_next().

f8270bbf 04/08/2011 03:48 PM Anton Khirnov

avio: add a function for iterating though protocol names.

c234d40b 04/08/2011 02:45 PM Anton Khirnov

lavf: rename a parameter of av_sdp_create from buff->buf

This is more consistent with the rest of the API.

c3675dfe 04/08/2011 02:45 PM Anton Khirnov

lavf: rename avf_sdp_create to av_sdp_create.

The new name is more consistent with the rest of the API.

a9bf9d8e 04/08/2011 02:44 PM Anton Khirnov

lavf: make av_guess_image2_codec internal

It doesn't look very useful as a public function.

5593f031 04/08/2011 01:59 PM Anton Khirnov

avio: make URLProtocol internal.

c486dade 04/08/2011 01:59 PM Anton Khirnov

avio: make URLContext internal.

c5704b2b 04/08/2011 01:44 PM Anton Khirnov

lavf: mark av_pkt_dump(_log) for remove on $next+1 bump.

f35ff97f 04/08/2011 09:08 AM Anton Khirnov

lavf: use designated initializers for all protocols

This is more readable and makes it easier to reorder URLProtocol
members.

a6aa7a1a 04/08/2011 07:18 AM Anton Khirnov

applehttp: don't use deprecated url_ functions.

d6bbe761 04/08/2011 05:08 AM Anton Khirnov

avio: move two ff_udp_* functions from avio_internal to url.h

acaceca2 04/08/2011 05:08 AM Anton Khirnov

asfdec: remove a forgotten declaration of nonexistent function

026e1757 04/08/2011 05:07 AM Anton Khirnov

avio: deprecate the typedef for URLInterruptCB

There's no particular reason to pollute the namespace with a typedef for
it.

a2031251 04/07/2011 07:03 PM Luca Barbato

proto: include os_support.h in network.h

Fix compilation on systems without poll()

91819763 04/07/2011 04:11 PM Anton Khirnov

matroskaenc: don't write an empty Cues element.

9f5ddd1e 04/07/2011 04:11 PM Anton Khirnov

lavc: add a FF_API_REQUEST_CHANNELS deprecation macro

And hide request_channels AVOption under it.

5cec8971 04/07/2011 04:11 PM Anton Khirnov

avio: move extern url_interrupt_cb declaration from avio.h to url.h

8e76a19b 04/07/2011 04:11 PM Anton Khirnov

avio: make av_register_protocol2 internal.

80c6e238 04/07/2011 04:11 PM Anton Khirnov

avio: avio_ prefix for url_set_interrupt_cb.

f87b1b37 04/07/2011 04:07 PM Anton Khirnov

avio: AVIO_ prefixes for URL_ open flags.

3d42d493 04/07/2011 12:54 AM Luca Barbato

proto: introduce listen option in tcp

This way is possible to have simple micro-server act like

ffmpeg -i file.nut -vcodec copy -acodec copy -f nut tcp://foo:1234?listen

a013291d 04/07/2011 12:54 AM Luca Barbato

doc: clarify configure features

This way people will not get surprises regarding the current configure
behaviour and contributors will have a guideline on what is expected.

ebba2b3e 04/07/2011 12:53 AM Luca Barbato

proto: factor ff_network_wait_fd and use it on udp

Support the URL_FLAG_NONBLOCK semantic and uniform the protocol.
The quick retry loop is already part of retry_transfer_wrapper.

The polling routine is common to the network protocols:
udp, tcp and, once merged, sctp.

1f6265e0 04/06/2011 09:45 PM Brad

Fix parser: mark av_parser_parse() for removal on next major bump

Fix the breakage introduced with 9073ca6c6ebb9e3e9b60d968b7aa16cc8b6d558d