| Branch: | Revision:

ffmpeg @ 50d71404

# Date Author Comment
50d71404 02/15/2011 09:40 PM Justin Ruggles

ac3enc: change default floor code to 7.

This is to match the value in every (E-)AC-3 file from commercial sources.
It has a negligible effect on audio quality.

Signed-off-by: Mans Rullgard <>

9ac2085d 02/15/2011 05:11 PM Max Shakhmetov

os_support: fix poll() implementation

Our poll implementation does not iterate over the pollfd array properly
while setting the revents.

Signed-off-by: Luca Barbato <>

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

8ed4cc65 02/15/2011 02:20 PM Mans Rullgard

APIchanges: update for 55bad0c: vbv_delay

Signed-off-by: Mans Rullgard <>

55bad0c6 02/15/2011 02:20 PM Christophe Massiot

Pass VBV delay to the calling application via ctx

VBV delay is useful for T-STD compliance in some TS muxers. It is
certainly possible to retrieve it by parsing the output of FFmpeg, but
getting it from the context makes it simpler and less error-prone.

71f88b1f 02/15/2011 02:20 PM Peter Ross

binkaudio: remove unused copy of AVCodecContext*

Signed-off-by: Mans Rullgard <>

9806fbd5 02/15/2011 02:20 PM Peter Ross

binkaudio: fix channel count check

Perform validity check on AVFormatContext.channels instead of
uninitialised field.

This fixes issue 2001.

Signed-off-by: Mans Rullgard <>

d06497f3 02/15/2011 02:15 PM Maksym Veremeyenko

fix nsvdec.c compilation if DEBUG defined

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

ead15f1d 02/15/2011 05:43 AM Young Han Lee

aacdec: Implement LTP support.

Ported from gsoc svn.

77c330a0 02/14/2011 11:59 PM Anssi Hannula

APIchanges: update for 12c14cd

Signed-off-by: Mans Rullgard <>

2dd1ee4b 02/14/2011 11:18 PM Mans Rullgard

mpegtsenc: whitespace cosmetics

Signed-off-by: Mans Rullgard <>

3f2d3a19 02/14/2011 11:18 PM Anssi Hannula

mpegtsenc: set audio_type according to st->disposition

Signed-off-by: Mans Rullgard <>

60e73066 02/14/2011 11:18 PM Anssi Hannula

mpegts: set st->disposition according to ISO 639 language descriptor

Signed-off-by: Mans Rullgard <>

935ee1b9 02/14/2011 11:17 PM Mans Rullgard

apichanges: update for 24a83bd: add AV_DISPOSITION_CLEAN_EFFECTS flag

Signed-off-by: Mans Rullgard <>

24a83bd1 02/14/2011 11:16 PM Anssi Hannula


Signed-off-by: Mans Rullgard <>

70c275f8 02/14/2011 08:00 PM Stefano Sabatini

Make avfilter_config_links() propagate audio information of the source link if it is not explicitely set by the filter.

b08f59dc 02/14/2011 05:20 PM Tilman Brock

Fix spelling error.

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

275189a2 02/14/2011 02:55 PM Ronald S. Bultje

mmst: fix reading uninitialized data for ping packets.

Fixes errors after a few minutes (first ping) when playing back

08a459f0 02/14/2011 01:08 PM Mans Rullgard

Update APIchanges for 910b5b8

Signed-off-by: Mans Rullgard <>

910b5b82 02/14/2011 01:07 PM Michael Niedermayer

Add sample_aspect_ratio to AVFilterLink

Signed-off-by: Mans Rullgard <>

b7ec5cc4 02/14/2011 12:11 PM Stefano Sabatini

Remove disabled legacy code in ffplay.

The code was setting aspect ratio from the DTG active format, and was
present and disabled since the creation of ffplay.

See thread:
Subject: [FFmpeg-devel] [PATCH] Cosmetics: adopt compact notation in
disabled code....

916dee9f 02/14/2011 09:46 AM Alex Converse

aac: remove dead SBR input scaling

It has been unused since 9d06d7bce3babb82ed650c13ed13a57f6f626a71

Signed-off-by: Mans Rullgard <>

aabc2682 02/13/2011 10:10 PM Mans Rullgard

asfdec: fix build for big endian targets

Signed-off-by: Mans Rullgard <>

fbb6b49d 02/13/2011 09:49 PM Justin Ruggles

ac3enc: Add x86-optimized function to speed up log2_tab().

AC3DSPContext.ac3_max_msb_abs_int16() finds the maximum MSB of the absolute
value of each element in an array of int16_t.

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

1a973feb 02/13/2011 09:49 PM Peter Ross

wtv: ignore empty data_guid chunks

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

5cbd3b5d 02/13/2011 09:49 PM Anton Khirnov

asfdec: don't export empty metadata

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

8bf6db1b 02/13/2011 09:49 PM Anton Khirnov

asfdec: split reading stream properties out of asf_read_header()

This contains a rename from gsize->size

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

70630e35 02/13/2011 09:49 PM Francesco Cosoleto

mmst: print packet type with error status code message

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

3ad464bf 02/13/2011 09:00 PM Mans Rullgard

configure: fix non-standard regex used with expr

The colon operator of expr always anchors the pattern at the start
of the string. An explicit ^ in the pattern has unspecified
behaviour, so remove it.

Signed-off-by: Mans Rullgard <>

7a4abe59 02/13/2011 04:22 PM Anatoly Nenashev

mpeg4video: ignore broken GOP headers

Some MPEG4 cameras produce files with empty GOP headers.
This patch makes the decoder ignore such broken headers and proceed
with the following I-frame. Without this change, the following
start code is missed resulting in the entire I-frame being skipped....

5d57846b 02/13/2011 04:22 PM Mans Rullgard

configure: report full gcc version string

This makes the cc_ident value, which is used in FATE reports, include
all interesting parts of the gcc version string.

Signed-off-by: Mans Rullgard <>

bb7a22b5 02/13/2011 04:22 PM Mans Rullgard

configure: add cleanws() function

This function removes leading and trailing spaces and collapses
multiple spaces into one.

Signed-off-by: Mans Rullgard <>

e6b1ed69 02/13/2011 02:36 PM Loren Merritt

FFT: factor a shuffle out of the inner loop and merge it into fft_permute.

6% faster SSE FFT on Conroe, 2.5% on Penryn.

Signed-off-by: Janne Grunau <>

3c33c0e2 02/13/2011 02:21 PM Anssi Hannula

lavf: print stream disposition in dump_stream_format

Signed-off-by: Janne Grunau <>

57f2c9ae 02/13/2011 02:16 PM Anssi Hannula

spdifenc: fix byte order on big-endian systems

There is a check for HAVE_BIGENDIAN when outputting the IEC 61937
stream. On big-endian systems the payload data is not byteswapped,
causing in effect the outputted payload data to be in a different byte
order on big-endian than on little-endian systems....

482d98f6 02/13/2011 02:16 PM Anssi Hannula

spdifenc: IEC 61937 encapsulation of DTS-HD for HDMI

Signed-off-by: Janne Grunau <>

23153921 02/13/2011 01:39 PM Peter Ross

bink: permute Bink version 'b' quant matrices by inverse scan order

This fixes visual glitches in Bink version 'b' files, as the quantization
tables were not being permuted.

Signed-off-by: Mans Rullgard <>

cb62510c 02/13/2011 12:34 PM Peter Ross

bink: simplify how quantization matrices are passed to read_dct_coeffs()

Signed-off-by: Mans Rullgard <>

f344903c 02/13/2011 01:42 AM Mans Rullgard

Fix MMX rgb24 to yuv conversion with gcc 4.6

When built with gcc 4.6, the MMX rgb24 to yuv conversion gives
wrong output. The compiler produces this warning:

libswscale/swscale_template.c:1885:5: warning: use of memory input without lvalue in asm operand 4 is deprecated...

44b11207 02/13/2011 01:16 AM Takashi Mochizuki

movenc: Force first sample as SYNC

Signed-off-by: Mans Rullgard <>

47d62c96 02/12/2011 03:47 PM Vitor Sessak

Make tables generation insensitive to floating-point implementation

Using doubles make the double -> int cast well defined for all the values
used, with the exception of when s[i]==1.0, which is special-cased.

Signed-off-by: Mans Rullgard <>

e063f588 02/12/2011 01:17 PM Stefano Sabatini

Fix script command in a FAQ entry

In the FAQ section "How do I encode single pictures into movies?", use
-s for generating symbolic links with the ln command.

The script was generating hard links, which is not likely what it was
supposed to do.

Fix issue 2488....

40321376 02/12/2011 12:58 PM Stefano Sabatini

Allow "make clean" to clean files in tools

Signed-off-by: Mans Rullgard <>

cd6a5a57 02/12/2011 12:55 PM Stefano Sabatini

Add lavfi-showfiltfmts and graph2dot to $(TOOLS)

Allow make clean to remove the corresponding binaries.

Fix issue 2162.

Signed-off-by: Mans Rullgard <>

646739a0 02/11/2011 11:47 PM Baptiste Coudurier

Fix qtrle regression test, actually test qtrle.

Signed-off-by: Mans Rullgard <>

b2dd842d 02/11/2011 09:58 PM Martin Storsjö

rtsp/rdt: Assign the RTSPStream index to AVStream->id

This is used for mapping AVStreams back to their corresponding
RTSPStream. Since d9c0510, the RTSPStream pointer isn't stored in
AVStream->priv_data any longer, breaking this mapping from AVStreams
to RTSPStreams....

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

2a03e873 02/11/2011 09:58 PM Ronald S. Bultje

Add missing terminating backslash

4b884207 02/11/2011 06:45 PM Mans Rullgard

configure: remove early check_deps $ARCH_EXT_LIST

The early disabling of irrelevant arch extensions is no longer
required, and removing it makes dependencies involving these
work as expected.

Signed-off-by: Mans Rullgard <>

a7878c9f 02/11/2011 03:48 PM Mans Rullgard

VP8: ARM optimised decode_block_coeffs_internal

Approximately 5% faster on Cortex-A8.

Signed-off-by: Mans Rullgard <>

7da48fd0 02/11/2011 03:48 PM Mans Rullgard

ARM optimised vp56_rac_get_prob()

Approximately 3% faster on Cortex-A8.

Signed-off-by: Mans Rullgard <>

aa8ac53b 02/11/2011 02:01 PM Stefano Sabatini

Update overlay documentation after movie syntax update.

Overlay documentation is still using the old unsupported syntax.

Signed-off-by: Mans Rullgard <>

adb1ad0d 02/11/2011 12:47 PM Peter Ross

bink: reindent after last commit

Signed-off-by: Janne Grunau <>

e00f41d5 02/11/2011 12:47 PM Peter Ross

Bink version 'b' video decoder

Based on original patch by Kostya Shishkov

Signed-off-by: Janne Grunau <>

b0294c80 02/11/2011 02:34 AM Anton Khirnov

lavf: deprecate AVFormatContext.index_built

it's not touched anywhere in ffmpeg, the code setting it was removed
over two years ago (e9b78eeba22b050810a507e69df1b652e56ab62b).

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

0605cb43 02/11/2011 02:34 AM Alexander Strasser

vorbis dec: Remove obsolete comment

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

4f03c5d7 02/11/2011 02:34 AM Alexander Strasser

vorbis dec: cosmetics: Indent consistently

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

97f5f971 02/11/2011 02:34 AM Alexander Strasser

vorbis dec: cosmetics: Indent CPP cond properly

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

07f06540 02/11/2011 02:34 AM Alexander Strasser

vorbis dec: Delete useless scopes, and reindent after scope deletion

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

f3d09d44 02/11/2011 12:18 AM Jason Garrett-Glaser

VP8: optimized mv prediction and decoding

Merge find_near_mvs and mv bitstream decoding: don't do prediction steps
until absolutely necessary.

626264b1 02/10/2011 11:16 PM Justin Ruggles

ac3enc: Remove unneeded clipping of shift amount.

s->windowed_samples will always have a range of [-32767,32767] due to the
window function, so the return value from log2_tab() will always be in the
range [0,14].

Signed-off-by: Mans Rullgard <>

d4582889 02/10/2011 11:16 PM Justin Ruggles

ac3enc: remove right shifting from lshift_tab() and make lshift unsigned.

Signed-off-by: Mans Rullgard <>

0b1d291a 02/10/2011 11:05 PM Anton Khirnov

asfdec: deobfuscate reading video properties size

This code will be later split out into a function which takes a 'size'
argument, so I'm keeping the name 'sizeX' here.

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

c1fea230 02/10/2011 11:03 PM Anton Khirnov

asfdec: split asf_read_header()

Only trivial splits are done here -- i.e. copy/paste + reindent +
missing variable declarations.

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

68137ba3 02/10/2011 09:55 PM Peter Ross

wtv: mark streams intended for hearing or visual impaired persons

Signed-off-by: Janne Grunau <>

52091491 02/10/2011 09:55 PM Peter Ross

make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIRED

Signed-off-by: Janne Grunau <>

12c14cd4 02/10/2011 09:55 PM Peter Ross


Signed-off-by: Janne Grunau <>

44adbebe 02/10/2011 09:45 PM Mans Rullgard

Remove final semicolon from some macros

This avoids double semicolons after macro expansion.

Signed-off-by: Mans Rullgard <>

df211c3a 02/10/2011 09:45 PM Ronen Mizrahi

dvbsubenc: Fix placement of the object version

Signed-off-by: Mans Rullgard <>

5c19f64c 02/10/2011 08:37 PM Janne Grunau

document passing the fate samples location via make variable

493aa30a 02/10/2011 08:37 PM Janne Grunau

dvbsubdec: check against buffer overreads

Signed-off-by: Janne Grunau <>

4a72765a 02/10/2011 08:37 PM Reimar Döffinger

Do not fail DVB sub decoding because of a few padding bytes

Instead of returning an error when bytes are left over, just return
the number of actually used bytes as other decoders do.
Instead add a special case so an error will be returned when none
of the data looks valid to avoid making debugging a pain....

dda3f0ef 02/10/2011 08:32 PM Justin Ruggles

Add x86-optimized versions of exponent_min().

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

b4668274 02/10/2011 02:17 PM Mans Rullgard

Remove incorrect return statement from avcodec_thread_free()

The function return type is void, so a return statement with an
expression is forbidden (and pointless).

Signed-off-by: Mans Rullgard <>

dbb09ec2 02/10/2011 02:17 PM Mans Rullgard

ivi_dsp: remove semicolons after function definitions

Signed-off-by: Mans Rullgard <>

628b16f4 02/10/2011 02:17 PM Mans Rullgard

mov: remove stray semicolon

Signed-off-by: Mans Rullgard <>

d7a5106e 02/10/2011 12:03 PM Anton Khirnov

asfdec: skip the stream bitrate list

Its contents aren't used for anything.

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

7c725380 02/10/2011 03:26 AM Anton Khirnov

asfdec: use an ASFContext array for storing stream bitrates

This will be useful for splitting asf_read_header()

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

d42b0972 02/10/2011 03:26 AM Anton Khirnov

asfdec: move DAR list to ASFContext

This will be useful for splitting asf_read_header()

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

00952be4 02/10/2011 03:03 AM David Fries

udp: Enable address reuse by default for multicast

Keep the original corner case behaviour, where reuse is enabled
for the case where no argument is given to the reuse url option.

Signed-off-by: Martin Storsjö <>
Signed-off-by: Ronald S. Bultje <>

569ff021 02/09/2011 10:41 PM Anton Khirnov

asfdec: remove some write-only values from the context

Signed-off-by: Mans Rullgard <>

9a77a92c 02/09/2011 08:52 PM Mans Rullgard

Fix build with threading disabled

The avcodec_thread_free() compatibility wrapper calls ff_thread_free(),
which is not defined when threading is disabled. Make this call

Signed-off-by: Mans Rullgard <>

aef669cd 02/09/2011 08:52 PM Mans Rullgard

w32thread: add missing #include thread.h

This should fix building with win32 threads.

Signed-off-by: Mans Rullgard <>

4bc328a2 02/09/2011 08:31 PM Anton Khirnov

asf: split ASFContext into muxer and demuxer parts.

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

2cfa2d92 02/09/2011 08:30 PM Reimar Döffinger

check sample_fmt in avcodec_open

check AVCodecContext->sample_fmt against AVCodec->sample_fmts[] to ensure
that the encoder supports the specified sample format. Error out if it doesn't.
Previously, it would continue and output garbage. Fixes issue 2587.

f4c79d1e 02/09/2011 04:56 PM Vladimir Pantelic

mpegts: remove unused macro MAX_SCAN_PACKETS

Signed-off-by: Mans Rullgard <>

d23845f3 02/09/2011 02:17 PM Alexander Strange

vp3: Frame-based multithreading support

Decode times for big_buck_bunny_720p_stereo:

1 thread:
real 1m14.227s
user 1m13.104s
sys 0m1.108s

2 threads: (33% faster)
real 0m49.329s
user 1m33.735s
sys 0m1.834s

3 threads: (44% faster)
real 0m41.593s...

f2146944 02/09/2011 02:17 PM Ronald S. Bultje

Add missing git rev hash.

c0b102ca 02/09/2011 02:17 PM Alexander Strange

Deprecate avcodec_thread_init()

As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.

avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the...

8e8cc52b 02/09/2011 02:17 PM Ronald S. Bultje

Add missing git rev hash.

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

c2bd7578 02/09/2011 02:17 PM Ronald S. Bultje

Add missing git revision hask.

e4e234fa 02/09/2011 12:33 PM Anton Khirnov

asf: make ff_guidcmp inline and move it to asf.h

Signed-off-by: Mans Rullgard <>

c7ac200d 02/08/2011 11:59 PM Jason Garrett-Glaser

Update qmin/qmax values for libx264 presets

Also allow qmin/qmax to go up to 69 (the current max value for libx264). This
will have to increase when we add 9/10-bit support.

f7f8120f 02/08/2011 11:59 PM Jason Garrett-Glaser

Fix broken vbv_buffer_init handling in libx264.c

Due to being pants-on-head retarded, libavcodec defaults this to zero, which
results in broken output. This didn't affect ffmpeg.c, which sets it itself,
but caused problems for other calling apps using VBV.

62457f90 02/08/2011 11:59 PM Jason Garrett-Glaser

VP8: idct_mb optimizations

Currently uses AV_RL32 instead of AV_RL32A, as the latter doesn't exist yet.

17cf7c68 02/08/2011 11:25 PM Ronald S. Bultje

Fix ff_emu_edge_core_sse() on Win64.

Fix emu_edge_v_extend_15 to be <128 bytes on Win64, by being more strict
on the size of registers and which registers are being used for operations
where multiple are available. This fixes segfaults in emulated_edge()...

3940caad 02/08/2011 11:25 PM Anssi Hannula

lavf: rename ff_probe_input_buffer to make it public

It is useful for applications that hand input data directly to lavf via
a ByteIOContext.

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

aad216fd 02/08/2011 11:25 PM Anssi Hannula

lavf: simplify pb parameter of ff_probe_input_buffer

There is no need to pass the ByteIOContext via a pointer to a pointer

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

4d016dd4 02/08/2011 11:25 PM Anssi Hannula

lavf: update ff_probe_input_buffer documentation

It never reopens the bytestream anymore.

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