| Branch: | Revision:

ffmpeg @ 487fef2d

# Date Author Comment
487fef2d 03/17/2011 07:51 PM Mans Rullgard

asf: update seek test reference

This updates the seek test reference to match de11ee9. Before this
change, most of the seeks requested positions before the supposed
start of the file (the preroll time), resulting in the first packet
being returned. With the preroll subtracted, some of these seeks...

2cface71 03/17/2011 04:25 PM Anton Khirnov

nutenc: fix a memleak

This fixes a minor memory leak introduced in 073f8b1.

Signed-off-by: Mans Rullgard <>

de11ee90 03/17/2011 04:25 PM Vladimir Pantelic

asfdec: subtract the preroll value and thus output 0 based timestamps

Signed-off-by: Mans Rullgard <>

f1f60f52 03/17/2011 11:28 AM Martin Storsjö

lavf: Make make_absolute_url a lavf internal function

This is shared by both applehttp demuxer and protocol.

Signed-off-by: Luca Barbato <>

dc6fdad5 03/17/2011 11:28 AM Martin Storsjö

Add missed APIchanges and changelog entries

Add an APIchanges entry for the av_pkt_dump2 and av_pkt_dump_log2
functions, and a changelog entry for the apple http live streaming
protocol handler.

Since neither of them got a minor bump at commit time, but were...

bc040cb3 03/17/2011 11:20 AM Martin Storsjö

applehttp: Fix a typo in a comment

Signed-off-by: Mans Rullgard <>

68d875ad 03/17/2011 06:30 AM Stefano Sabatini

lavf: make av_interleave_packet() return meaningful error codes

Signed-off-by: Michael Niedermayer <>
(cherry picked from commit c5dcb3d493a6bb73efeb8bfae24f5cc31908201f)

Signed-off-by: Reinhard Tartler <>

70abc323 03/17/2011 06:29 AM Stefano Sabatini

lavf: enable av_dlog message in av_interleaved_write_frame()

Help debugging timestamp issues.

Signed-off-by: Michael Niedermayer <>
(cherry picked from commit d541c8b468c12892fe7b7e655e1ed45e11e2166d)

Signed-off-by: Reinhard Tartler <>

79f43a8c 03/17/2011 06:29 AM Stefano Sabatini

lavf: enable av_dlog() in compute_pkt_fields2()

Turns a comment into an av_dlog() instruction, also add a commented

Signed-off-by: Michael Niedermayer <>
(cherry picked from commit 77f21ce4641b53f3277ba30ca3d009b6250fd9ea)

Signed-off-by: Reinhard Tartler <>

4afedfd8 03/17/2011 03:35 AM Nathan Caldwell

aacenc: cosmetics, indentation, and comment clarification

Correct bad indentation in aaccoder
Clarify and correct comments in 3GPP psymodel, other cosmetics.

b7c96769 03/17/2011 03:34 AM Nathan Caldwell

aacenc: Refactor the parts of the AAC psymodel.

Remove ffac from and move min_snr out of AacPsyBand.
Rearrange AacPsyCoeffs to make it easier to implement energy spreading.
Rename the band[] array to bands[]
Copy energies and thresholds at the end of analysis....

f578854e 03/17/2011 03:12 AM Young Han Lee

aaccoder: Change FFMAX for allzero flag to OR bit operation

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

b7f2fdde 03/17/2011 02:59 AM Anton Khirnov

avio: rename put_flush_packet -> avio_flush

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

35f10235 03/17/2011 02:59 AM Anton Khirnov

avio: deprecate url_close_buf

It's not used anywhere and its return value looks broken.

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

83fddaeb 03/17/2011 02:59 AM Anton Khirnov

avio: deprecate url_open_buf

It's only used in one place and does the same thing as

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

eda4cf92 03/17/2011 02:59 AM Anton Khirnov

avio: always compile avio_printf, rather than on CONFIG_MUXERS

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

d9d86e00 03/17/2011 02:59 AM Anton Khirnov

avio: avio_ prefix for url_fprintf

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

af020732 03/17/2011 02:59 AM Anton Khirnov

avio: change avio_tell/skip from macros to inline functions

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

59f65d95 03/17/2011 02:59 AM Anton Khirnov

avio: make url_setbufsize internal.

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

4839c192 03/17/2011 02:59 AM Anton Khirnov

lavf: move ff_get_v from avio.h to avio_internal.h

And rename it to ffio_read_varlen.

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

073f8b10 03/17/2011 02:34 AM Anton Khirnov

nutenc: mux chapters.

Signed-off-by: Luca Barbato <>

4af9c1a5 03/17/2011 02:34 AM Luca Barbato

doc: update applehttp documentation

Integrate more comments from Stefano.

45a8a02a 03/17/2011 02:24 AM Anton Khirnov

lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense

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

cbf5d22d 03/16/2011 11:19 PM Ramiro Polla

Remove occurrences of my old email address

Signed-off-by: Mans Rullgard <>

381d37fd 03/16/2011 11:19 PM Mans Rullgard

dsputil: add bswap16_buf()

There are several places where a buffer is byte-swapped in 16-bit units.
This allows them to share code which can be optimised for various

Signed-off-by: Mans Rullgard <>

dff68563 03/16/2011 11:18 PM Sean McGovern

darwin: use -read_only_relocs flag only on 32-bit x86

Avoids the linker warning:
ld: warning: -read_only_relocs cannot be used with x86_64

Signed-off-by: Mans Rullgard <>

f8a45fa1 03/16/2011 09:01 PM Janne Grunau

replace FFmpeg with Libav in doc/

unless it stands for ffmpeg the program or is historic

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


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


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

070c5d0f 03/16/2011 08:54 PM Janne Grunau

partially rename FFmpeg to Libav

update mailing list references and irc channels in configure

fed5676f 03/16/2011 02:20 PM Anton Khirnov

mp3enc: remove mp3_write_packet(), use ff_raw_write_packet() instead

The two functions are identical, no point in duplicating code here.

8312e3fc 03/16/2011 11:53 AM Kostya

Do not attempt to decode APE file with no frames

This fixes invalid reads/writes with this sample:

1dac4d55 03/16/2011 11:24 AM Anton Khirnov

jvdec: don't use deprecated url_feof()

79414257 03/16/2011 12:49 AM Justin Ruggles

mathops: fix MULL when the compiler does not inline the function.

If the function is not inlined, an immmediate cannot be used for the
shift parameter, so the %cl register must be used instead in that case.

This fixes compilation for x86-32 using gcc with --disable-optimizations.

56e2ac6b 03/15/2011 05:57 PM Anton Khirnov

id3v2: merge TYER/TDAT/TIME to date tag

aaff3b31 03/15/2011 05:43 PM Justin Ruggles

mathops: change "g" constraint to "rm" in x86-32 version of MUL64.

The 1-arg imul instruction cannot take an immediate argument, only a register
or memory argument.

b181b8fb 03/15/2011 05:43 PM Justin Ruggles

mathops: convert MULL/MULH/MUL64 to inline functions rather than macros.

This fixes unexpected name collisions that were occurring with variables
declared within the macros.
It also fixes the fate-acodec-ac3_fixed regression test on x86-32.

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

Use AVERROR_EXIT with url_interrupt_cb.

Functions interrupted by url_interrupt_cb should not be restarted.
Therefore using AVERROR was wrong, as it did not allow to distinguish
when the underlying system call was interrupted and actually needed to be...

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


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

3e68b3ba 03/15/2011 12:04 PM Anton Khirnov

avio: deprecate url_ferror

AVIOContext.error should be used directly instead.

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

75b9ed04 03/15/2011 12:04 PM Anton Khirnov

lavf/utils: dont't explicitly check AVIOContext.error

The error should be caught in write_packet()/write_trailer()

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

025225d7 03/15/2011 11:20 AM Philip Langdale

h264_mp4toannexb_bsf: Fix spurious warning when stream has SPS and PPS units.

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

9f8f62d4 03/14/2011 09:13 PM Mans Rullgard


This file is a bad idea and also badly outdated.

Signed-off-by: Mans Rullgard <>

f1efbca5 03/14/2011 12:45 PM Justin Ruggles

ac3enc: add SIMD-optimized shifting functions for use with the fixed-point AC3 encoder.

323e6fea 03/14/2011 12:45 PM Justin

ac3enc: do not right-shift fixed-point coefficients in the final MDCT stage.

This increases the accuracy of coefficients, leading to improved quality.
Rescaling of the coefficients to full 25-bit accuracy is done rather than
offsetting the exponent values. This requires coefficient scaling to be done...

6e7cf13b 03/14/2011 12:07 PM Peter Ross

mm decoder: move buffer allocation from decode_init() to decode_frame()

This permits playback in ffplay when libavfilter is enabled.

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

7f05c164 03/14/2011 12:06 PM Peter Ross

jv demuxer: prevent video packet size overflow

In the event of overflow, the JV_PADDING state will avio_skip over
any overflow bytes (using JVFrame.total_size).

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

772cb062 03/14/2011 12:05 PM Peter Ross

jv demuxer: define JV_PREAMBLE_SIZE instead of hard coding the number

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

20c1281f 03/14/2011 12:05 PM Peter Ross

jv demuxer: calculate palette_size for each frame in read_header

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

402f9ad5 03/14/2011 12:05 PM Peter Ross

Bitmap Brothers JV errata

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

bfaefd87 03/14/2011 12:05 PM Peter Ross

Bitmap Brothers JV demuxer

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

0697440c 03/14/2011 12:05 PM Peter Ross

Bitmap Brothers JV video decoder

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

21de9204 03/13/2011 10:45 PM Johan Andersson

Update the url to the site website and change ffmpeg-devel to libav-devel

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

0e6a3ee4 03/13/2011 03:34 PM Luca Barbato

doc: document applehttp protocol

The documentation might be extended once/if a live/store override option
will have to be provided for non-compliant segmenter.

81a13131 03/12/2011 11:36 PM Jason Garrett-Glaser

VP8: fix other function declaration

Was missed in 3efbe137.

0215006a 03/12/2011 02:08 PM Hendrik Leppkes

VC1: Export profile/level

Signed-off-by: Mans Rullgard <>

5dbe78bf 03/12/2011 02:08 PM Stefano Sabatini

ffmpeg: remove unused variable in ffmpeg_exit()

Fix the warning:
ffmpeg.c: In function ‘ffmpeg_exit’:
ffmpeg.c:509: warning: unused variable ‘j’

Signed-off-by: Mans Rullgard <>

1eeca886 03/12/2011 11:43 AM Jason Garrett-Glaser

VP8: optimize VP8Context struct ordering

Shaves at least 3KB off code size on x86, should improve cache utilization.
This would probably be useful to do for other decoders/encoders as well.

3efbe137 03/12/2011 11:41 AM Jason Garrett-Glaser

VP8: fix function declaration

b1d2f812 03/12/2011 11:41 AM Jason Garrett-Glaser

VP8: token probs doesn't need padding

prob0 is the only prob array ever accessed, so prob1 can serve as padding
for prob0.

628b48db 03/12/2011 11:41 AM Jason Garrett-Glaser

VP8: use a goto to break out of two loops

A break statement was supposed to break out of two loops, but only broke out of one.
Didn't affect output, just could have been marginally slower.

a5444fee 03/12/2011 11:35 AM Mans Rullgard

Add CONFIG_AC3DSP symbol to simplify makefiles

Signed-off-by: Mans Rullgard <>

4fa18c56 03/11/2011 08:13 PM Mans Rullgard

configure: use pkg-config helpers

This makes existing pkg-config uses as well as the libsdl checks
use the new pkg-config helper functions, which should be more
robust against broken systems.

Signed-off-by: Mans Rullgard <>

3f8040db 03/11/2011 08:13 PM Mans Rullgard

configure: improve pkg-config support

This adds helper functions for checking packages with pkg-config
and managing the associated flags.

Note that pkg-config use is still discouraged due to widespread
poor practices resulting in broken flags in many situations. A...

edaf1ae2 03/11/2011 08:13 PM Mans Rullgard

configure: allow checking multiple functions in check_func_headers()

This makes it possible to pass a space-separated list of functions
to check_func_headers and check_lib2. If any function is missing,
none are enabled as available, so this should only be used for...

35d7d6f7 03/11/2011 01:32 AM Benjamin Larsson

Add one more avc intra fourcc and extend the description

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

aecd0a44 03/10/2011 11:05 PM Benjamin Larsson

Export profiles from the mpeg2 video decoder

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

fb61a7c5 03/09/2011 10:57 AM Anton Khirnov

id3v2: fix typo in error message

Signed-off-by: Mans Rullgard <>

31ff9bd7 03/08/2011 10:45 PM Nathan Caldwell

aacenc: Fix a segfault in search_for_quantizers

This reverts the removal of scoefs from AACEncContext.
It resulted in scoefs being a NULL pointer when
search_for_quantizers() is called.

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

66e5b1df 03/07/2011 10:20 PM Anton Khirnov

avio: deprecate url_feof

AVIOContext.eof_reached should be used directly instead.

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

6a7e074e 03/07/2011 08:00 PM Anssi Hannula

mpegts: add all stream languages into metadata

This is used at least on some older DVB broadcasts for dual-mono audio

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

688c22e0 03/07/2011 07:56 PM Baptiste Coudurier

In retry_transfer_wrapper, do not check url_interrupt_cb, causes problems
when writing and pressing q during encoding. Instead, check url_interrupt_cb
at the end.

Note that when a protocol is interrupted by url_interrupt_cb, some data may
be silently discarded: the protocol context is not suitable for anything...

789936db 03/07/2011 07:44 PM Hendrik Leppkes

Flag DVB subtitles for the hard hearing appropriately using their component_type id.

This is based on the component_type definition in the DVB SI spec [1].


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

435cebd0 03/07/2011 07:43 PM Anssi Hannula

mpegtsenc: handle multiple language tags per stream

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

89e568fe 03/07/2011 07:34 PM Anssi Hannula

lavf: update documentation of AVOutputFormat.flags

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

4e84f994 03/07/2011 06:18 PM Ronald S. Bultje


f1ef2cd9 03/07/2011 05:25 PM Anton Khirnov

avio: move ff_rewind_with_probe_data from avio.h to avio_internal.h

also change its prefix to ffio

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

e8bb2e24 03/07/2011 05:25 PM Anton Khirnov

avio: deprecate url_fget_max_packet_size

AVIOContext.max_packet_size should be used directly instead.

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

2790d7a9 03/07/2011 05:25 PM Young Han Lee

aacenc: remove the data arrays

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

c9256246 03/07/2011 05:25 PM Anssi Hannula

lavf: document the use of multiple entries in language metadata tag

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

36864ac3 03/07/2011 05:25 PM Thadeu Lima de Souza Cascardo

aac_latm_dec: use aac context and aac m4ac

When decoding latm config, use the corresponding aac context and its
m4ac instead of using NULL and a local variable. This fixes decoding of
audio in MPEG TS from SBTVD (the Brazillian Digital TV Sytem), when
there is no extradata. This is the case when using the decoder with...

2d9a101a 03/07/2011 04:18 PM Justin Ruggles

ac3enc: add some assertions

7100d63c 03/07/2011 04:18 PM Justin Ruggles

ac3enc: use av_assert2() instead of assert() to make debugging easier.

d21be5f1 03/07/2011 04:15 PM Justin Ruggles

cosmetics: rename ff_fmt_convert_init_ppc() to ff_fmt_convert_init_altivec().

It only has Altivec functions and is not compiled if Altivec is disabled.

159683dd 03/07/2011 04:15 PM Carl Eugen Hoyos

Fix compilation on powerpc with --disable-altivec.

d34ca1cf 03/07/2011 04:11 PM Peter Ross

Add audio codec 0x1600 (ADTS AAC)

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

76aa876e 03/07/2011 04:03 PM Anton Khirnov

avio: avio_ prefix for url_fsize

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

e5197539 03/07/2011 03:51 PM Anton Khirnov

avio: deprecate url_fgetc and remove all it uses

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

655e45e7 03/07/2011 03:19 PM Anton Khirnov

avio: deprecate url_fgets

It's not used anywhere and doesn't look ver useful to be public.

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

2af07d36 03/07/2011 03:19 PM Peter Ross

avio: add avio_skip macro

This is a substitute for the url_fskip function that was deprecated by
commit 0300db8ad778a194b4a8ec98f6da3de5b41c46ee. avio_fskip is provided to
improve demuxer code readability. It distinguishes the act of skipping over
unknown or irrelevant bytes from the standard avio_seek operation....

02dd3666 03/07/2011 03:19 PM Sean McGovern

h264_mp3toannexb_bsg: don't crash, but warn, if PPS/SPS not found.

Should an AVC-1 in MP4 stream not contain SPS or PPS NAL units,
this BSF is then unable to allocate an output buffer for the
modified stream. Warn that the resulting stream may be unplayable....

f4f4e12c 03/06/2011 10:29 PM Martin Storsjö

Add Apple HTTP Live Streaming protocol handler

Signed-off-by: Luca Barbato <>

8f73c060 03/06/2011 10:29 PM Martin Storsjö


If this flag is set, the protocol can handle URLs where the
scheme is a nested scheme such as applehttp+file: - the protocol
can handle any URL where the first segment of the nested scheme
belongs to this protocol....

f3bea991 03/06/2011 10:29 PM Martin Storsjö

URLProtocol: Add a flags field

Signed-off-by: Luca Barbato <>

391a1327 03/05/2011 02:51 PM Mans Rullgard

yadif: add parens around macro parameters

This fixes compilation with preprocessors which do not add whitespace
around replaced tokens, resulting in invalid expressions like 1--1.

Signed-off-by: Mans Rullgard <>

53e35fd3 03/04/2011 10:40 PM Justin Ruggles

ac3enc: add num_rematrixing_bands to AC3EncodeContext and use it instead of the hardcoded value.

Currently it is always 4, but this change will allow it to be adjusted when
bandwidth-related features are added such as channel coupling, enhanced
channel coupling, and spectral extension.

b35743ff 03/04/2011 09:48 PM Justin Ruggles

ac3: define AC3_MAX_CPL_BANDS and use it in ac3dec.h

a2704c97 03/04/2011 04:26 PM Anton Khirnov

avio: add avio_tell macro as a replacement for url_ftell

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

e16ead07 03/04/2011 04:26 PM Anton Khirnov

lavf: deprecate get_strz() in favor of avio_get_str

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

41d8555f 03/04/2011 04:24 PM Reimar Döffinger

avio: add avio_get_str()

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