| Branch: | Revision:

ffmpeg @ 119cc033

# Date Author Comment
119cc033 01/25/2011 01:45 AM Diego Elio Pettenò

Make RTPFirstDynamicPayloadHandler static to rtpdec.c

Signed-off-by: Mans Rullgard <>

69ad22c7 01/25/2011 01:37 AM Diego Elio Pettenò

Make ff_realmedia_mp3_dynamic_handler static.

Signed-off-by: Mans Rullgard <>

aa61e39e 01/25/2011 01:02 AM Mans Rullgard

Make denoise_dct_c() and dct_quantize_trellis_c() static in definitions

1d4da6a460d5b78026e3b854fdd6f469957a054c added static to the
prototypes for these fuctions. Adding it to the definitions
as well.

Signed-off-by: Mans Rullgard <>

5b5083b5 01/25/2011 12:45 AM Diego Elio Pettenò

Don't declare a pcm_dvd encoder.

The PCM_DVD encoder would be left unused, as allcodecs.c properly declared
it as being decoder-only, but it would still be built into the object file.

Since there is no block of code to properly encode this PCM format, it's...

73a0b19b 01/25/2011 12:25 AM Diego Elio 'Flameeyes' Pett...

Don't check for DEBUG before using dprintf.

The dprintf macro is no-op when DEBUG is unset, so there is no need to
put it conditional to DEBUG.

Signed-off-by: Mans Rullgard <>

a6d1bd05 01/25/2011 12:02 AM Diego Elio Pettenò

Make local variables static.

Signed-off-by: Mans Rullgard <>

f0a86769 01/25/2011 12:02 AM Diego Elio Pettenò

Make dvenc.c functions static to the unit.

Also drop some CONFIG_DV_MUXER #ifdefs probably vestigial from before the
split of dvenc and dvdec.

Signed-off-by: Mans Rullgard <>

1d4da6a4 01/24/2011 11:54 PM Diego Elio Pettenò

Make denoise_dct_c and dct_quantize_trellis_c static.

Signed-off-by: Mans Rullgard <>

bb875b75 01/24/2011 11:45 PM Diego Elio Pettenò

Make the ff_lockmgr_cb function pointer static to utils.c

Signed-off-by: Mans Rullgard <>

3568853f 01/24/2011 11:44 PM Diego Elio Pettenò

Make this_year static to cmdutils.c

Signed-off-by: Mans Rullgard <>

82e1f217 01/24/2011 11:43 PM Diego Elio Pettenò

Rename sf_table in atrac.c unit to ff_atrac_sf_table.

This ensures a locally-unique name as well as marks the symbol as
FFmpeg-private at least by declaration.

Signed-off-by: Mans Rullgard <>

53493f9a 01/24/2011 11:42 PM Diego Elio Pettenò

Mark qmf_window table static to atrac.c unit.

The table is not used anywhere else on libavcodec.

Signed-off-by: Mans Rullgard <>

80944df7 01/24/2011 11:24 PM Mans Rullgard

x86: fix overflow in h264 8x8 planar prediction

Signed-off-by: Mans Rullgard <>

e63dd5fb 01/24/2011 10:26 PM Mans Rullgard

fate: add h264 test for extreme cases in planar prediction

Signed-off-by: Mans Rullgard <>

efa6ce99 01/24/2011 10:09 PM Mans Rullgard

ffserver: put gcc attribute under proper ifdef

2762a7a2 01/24/2011 09:49 PM Martin Storsjö

rtspdec: Retry with TCP if UDP failed

Signed-off-by: Janne Grunau <>

e836b1b0 01/24/2011 09:46 PM Martin Storsjo

rtspdec: Move rtsp_read_pause up, next to rtsp_read_play

Signed-off-by: Janne Grunau <>

aeb2de1c 01/24/2011 09:46 PM Martin Storsjo

rtsp: Use ff_rtsp_undo_setup in the cleanup code in ff_rtsp_make_request

Signed-off-by: Janne Grunau <>

93e7490e 01/24/2011 09:46 PM Martin Storsjo

rtsp: Split out a function undoing the setup made by ff_rtsp_make_setup_request

Signed-off-by: Janne Grunau <>

fef5649a 01/24/2011 09:46 PM Martin Storsjo

rtsp: Make make_setup_request a nonstatic function

Signed-off-by: Janne Grunau <>

4be170c9 01/24/2011 08:25 PM Reimar Döffinger

Use av_fast_malloc instead of av_realloc.

This should be faster, is less code and fixes issue 2524
(allocation error would lead to crash).
(cherry picked from commit e7b95918fca1c3d057d35f77ba58ee2d00d03151)

032f4068 01/24/2011 08:25 PM Reimar Döffinger

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

(cherry picked from commit 7d5082600ee63d879c2a325974ea09c8ace05019)

2b0decf6 01/24/2011 08:19 PM Martin Storsjö

applehttp: Fix the key check in handle_variant_args

The key string is supposed to contain the equals character,
too. Since the checked string was wrong, and the return value
check was wrong too, it incorrectly seemed to work right before.

Signed-off-by: Mans Rullgard <>

dacbcd17 01/24/2011 07:46 PM Kostya

reindent after last commit

Signed-off-by: Janne Grunau <>

3bdc886c 01/24/2011 07:46 PM Kostya

Extend WavPack demuxer and decoder to support >2 channel audio

Signed-off-by: Janne Grunau <>

07b48f8c 01/24/2011 05:30 PM Stefano Sabatini

Do not set audio_resample to 0 if audio_sync_method is > 1.

If audio_sync_method is >1 the resampler is used for audio drift
compensation, and do_audio_out() was causing an assert failure because
audio_resample was not set.

Fix issue 2516, which was introduced by SVN r25939....

78f318be 01/24/2011 02:59 PM Mans Rullgard

ARM: NEON: fix overflow in h264 16x16 planar pred

Signed-off-by: Mans Rullgard <>

5f3b8314 01/24/2011 01:59 AM Mans Rullgard

Add CFLAGS needed by PathScale compiler

The PathScale compiler miscompiles wrapping arithmetic without
these flags.

Signed-off-by: Mans Rullgard <>

a1e4b3f6 01/23/2011 09:33 PM Mans Rullgard

Disable symbol versioning on some BSDs

Dragonfly, NetBSD, and OpenBSD do not support symbol versioning
although our link test passes. Disable it explicitly for these

Signed-off-by: Mans Rullgard <>

7a5a168a 01/23/2011 07:05 PM Mans Rullgard

MIPS: use inline asm only when supported by compiler

2fd9035d 01/23/2011 05:57 PM Janne Grunau

aacenc: fix typo in sync extension constant in 8ae0fa2

f162e988 01/23/2011 04:41 PM Mans Rullgard

Remove redundant checks against MIN_CACHE_BITS

With the removal of the libmpeg2 bitstream reader, MIN_CACHE_BITS
is always >= 25, so tests against smaller values can be removed.

Signed-off-by: Mans Rullgard <>

611a6f59 01/23/2011 04:40 PM Mans Rullgard

get_bits: move tracing macros to end of file

Signed-off-by: Mans Rullgard <>

fb5c841d 01/23/2011 01:57 PM Mans Rullgard

Sanitise get_bits macros, part 2

These whitespace changes improve the readability of the get_bits

Signed-off-by: Mans Rullgard <>

bf5f9b52 01/23/2011 01:57 PM Mans Rullgard

Sanitise get_bits macros, part 1

Some of the macros in get_bits.h include a final semicolon,
some do not. This removes these or adds do {} while(0) around
the macros as appropriate and adds semicolons where needed in
calling code.

Signed-off-by: Mans Rullgard <>

938f72e1 01/23/2011 01:57 PM Mans Rullgard

Remove "libmpeg2" bitstream reader

Using the libmpeg2 reader causes errors in a multitude of places,
including MPEG and H264 codecs. As the advantage of this reader
is questionable, removing it seems the sensible course of action,
especially considering the simplifications this allows elsewhere...

2b39962e 01/23/2011 01:55 PM Mans Rullgard

Makefile: simplify test tools handling

Signed-off-by: Mans Rullgard <>

305ca590 01/23/2011 07:53 AM Reinhard Tartler

ffserver: cleanup

remove the trivial function do_switch_stream as it doesn't help to make
the code easier to understand.

3b924294 01/22/2011 05:53 PM Justin Ruggles

ac3enc: use dsputil functions in apply_window()

Signed-off-by: Mans Rullgard <>

6eabb0d3 01/22/2011 05:53 PM Justin Ruggles

Change DSPContext.vector_fmul() from dst=dst*src to dest=src0*src1.

Signed-off-by: Mans Rullgard <>

fcb7e535 01/22/2011 05:22 PM Ronald S. Bultje


Signed-off-by: Janne Grunau <>

91078926 01/22/2011 05:21 PM Ronald S. Bultje

Fix crash on resolution change (issue 2393).

Don't free RBSP tables (containing decoded NAL units) on resolution
change, because we actually need this data to decode the frame after
reiniting (with new resolution). Fixed issue 2393.

Signed-off-by: Janne Grunau <>

96aad41e 01/22/2011 04:18 PM Mans Rullgard

Make LOCAL_ALIGNED macro fully C99 compatible

C99 variadic macros require more arguments than there are named
parameters in the definition. This means we must use an extra
indirection to avoid having two different macros for arrays with
one resp more than one dimension....

ff3d4310 01/22/2011 04:15 PM Alex Converse

Remove H.264 encoder fragments

It's incomplete, no one is working on it, and when someone asks about
working on it we advise them not to.

Signed-off-by: Mans Rullgard <>

8ae0fa24 01/22/2011 02:55 PM Alex Converse

aacenc: mark SBR absent

Use backwards compatible explicit signalling to denote the absence of

Signed-off-by: Janne Grunau <>

10ed96c7 01/22/2011 02:48 PM Stefano Sabatini

Amend documentation for the image2 demuxer, to better reflect the current behavior.

Signed-off-by: Mans Rullgard <>

db2ddd38 01/22/2011 01:06 PM Stefano Sabatini

Remove outdated and confusing comment.

Signed-off-by: Mans Rullgard <>

98cfadd6 01/22/2011 03:46 AM Justin Ruggles

10l: reverse the biquad coefficients.

I did not notice that the filter implementation uses a reversed history state.

Signed-off-by: Janne Grunau <>

20ac9de3 01/22/2011 03:10 AM Mike Scheutzow

streamid does not work with newaudio, newvideo, newsubtitle

fixes issue2465.

The problem is that the ffmpeg (the app) -streamid option did not work
with -newaudio/-newvideo/-newsubtitle.

The cause was a conflict between the feature where streamid values were...

76edf2c1 01/22/2011 03:08 AM Mans Rullgard

fate: add lossless h264 test

Signed-off-by: Mans Rullgard <>

b92f76e2 01/22/2011 02:07 AM Anssi Hannula

libfaac: add recognized profiles array

Signed-off-by: Janne Grunau <>

22272f61 01/22/2011 01:06 AM Anton Khirnov

mp3enc: support for id3v2.3 tags using a per-muxer AVOption

fixes issue2562.

Signed-off-by: Janne Grunau <>

cb6bc576 01/22/2011 01:06 AM Anton Khirnov

id3v2: split tables for various ID3v2 versions

This is needed for upcoming ID3v2.3 muxing support.

Signed-off-by: Janne Grunau <>

8c3caf7f 01/22/2011 01:04 AM Anton Khirnov

mp3enc: handle errors in id3v2_put_ttag

make the initialization of put clearer

this are the differences between
[FFmpeg-devel] [PATCH 1/3] mp3enc: add support for writing UTF-16 tags
and the already applied 187e23478bc5c066ff8eef562925471ac179644e

Signed-off-by: Janne Grunau <>

045b80e5 01/22/2011 12:31 AM Clément Bœsch

Move ID3v1 skip from decoder to demuxer

Signed-off-by: Janne Grunau <>

f4b1e21a 01/22/2011 12:30 AM Mans Rullgard

fate: make lavfi tests output only md5

Instead of saving huge raw files, use the md5: output pseudo-protocol
to calculate the checksum of the file directly. This is especially
useful when testing on remote targets as it avoids transferring 3.6GB
over the network.

f4096bf6 01/21/2011 11:11 PM Anssi Hannula

dca: add profile names

Signed-off-by: Mans Rullgard <>

69915b48 01/21/2011 10:23 PM Justin Ruggles

iir: Change dst param to float* in ff_iir_filter_flt().

Signed-off-by: Mans Rullgard <>

8f4a5d22 01/21/2011 10:20 PM Anssi Hannula

dca: consider a stream with XXCh/X96 in ExSS as DTS-HD HRA

DTS-HD HRA streams do not always have an XBR extension in the extension
substream. Instead they can have only XXCh and X96 extensions in
there and still be considered DTS-HD HRA.

This is also confirmed with Onkyo TX-SR607 receiver which recognizes...

187e2347 01/21/2011 09:52 PM Anton Khirnov

mp3enc: add support for writing UTF-16 tags

Also it gets rid of some mysterious magic numbers in code.

Signed-off-by: Mans Rullgard <>

4ad66441 01/21/2011 09:51 PM Mans Rullgard

Fix libavformat version extraction in configure

This fixes shared library builds broken by

Signed-off-by: Mans Rullgard <>

a210bce2 01/21/2011 08:54 PM Mans Rullgard

configure: better test for mktemp

Some variants of mktemp require a template, so provide one when
checking for the command. We already supply a template in the
subsequent uses of mktemp.

Thanks to Michael Kostylev.

Signed-off-by: Mans Rullgard <>

93bb9ff0 01/21/2011 08:47 PM Mans Rullgard

configure: simplify exit traps

This does the same thing and also fixes the trapping in
some (possibly broken) shells.

Suggested by Michael Kostylev.

Signed-off-by: Mans Rullgard <>

dccbd97d 01/21/2011 08:21 PM Anton Khirnov

lavf: move ff_put_str16_nolen from asf to avio and rename it

It will be useful in the mp3 muxer.

Signed-off-by: Mans Rullgard <>

4efd5cf3 01/21/2011 08:21 PM Anton Khirnov

avio: add av_put_str and deprecate put_strz in favor of it

Signed-off-by: Mans Rullgard <>

1c189fc5 01/21/2011 07:59 PM Justin Ruggles

cosmetics related to LPC changes.

Signed-off-by: Mans Rullgard <>

77a78e9b 01/21/2011 07:59 PM Justin Ruggles

Separate window function from autocorrelation.

Signed-off-by: Mans Rullgard <>

56f8952b 01/21/2011 07:58 PM Justin Ruggles

Move lpc_compute_autocorr() from DSPContext to a new struct LPCContext.

Signed-off-by: Mans Rullgard <>

50196a98 01/21/2011 07:30 PM Anton Khirnov

lavf: move the version macros to a new header

Signed-off-by: Mans Rullgard <>

d66eff36 01/21/2011 06:42 PM Anton Khirnov

id3v2: use an enum for encodings instead of magic numbers.

Signed-off-by: Mans Rullgard <>

c2dd0e9e 01/21/2011 06:36 PM Mans Rullgard

Make demuxers auto-select parsers they need

This makes configure --disable-everything --enable-demuxer=foo
work as expected.

Signed-off-by: Mans Rullgard <>

583fcb52 01/21/2011 03:36 PM Mans Rullgard

Makefile: simplify setting of some variables

Signed-off-by: Mans Rullgard <>

d08928bb 01/21/2011 03:11 PM Anton Khirnov

Split mp3 demuxer and muxer into separate files.

Signed-off-by: Mans Rullgard <>

2611e520 01/21/2011 10:37 AM Mans Rullgard

dca: pretty-print some tables

Signed-off-by: Mans Rullgard <>

0361d13c 01/20/2011 11:55 PM Justin Ruggles

iir: change filter type if/else to a switch.

Simplifies error handling and makes it easier to add additional filter types.

Signed-off-by: Mans Rullgard <>

fcdf0a43 01/20/2011 11:51 PM Justin Ruggles

Add biquad high-pass and low-pass IIR filters.

Signed-off-by: Mans Rullgard <>

66c6b5e2 01/20/2011 10:24 PM Ronald S. Bultje

Revert 2a1f431d38ea9c05abb215d70c7dc09cdb6888ab, it broke H264 lossless.

8bcfe7f7 01/20/2011 10:24 PM Ronald S. Bultje

Set gray (128) U/V planes for chroma-less samples. Fixes two fate samples
when played with -flags emu_edge.

30112ada 01/20/2011 08:23 PM Justin Ruggles

Split out Butterworth filter coeff init to a separate function.

Signed-off-by: Mans Rullgard <>

75b98610 01/20/2011 06:35 PM Justin Ruggles

cosmetics: vertical alignment and line wrap

Signed-off-by: Mans Rullgard <>

d42dc217 01/20/2011 06:35 PM Justin Ruggles

Add memory allocation failure checks to ff_iir_filter_init_coeffs().

Signed-off-by: Mans Rullgard <>

f0f54c29 01/20/2011 06:01 PM Mans Rullgard

Make PNG test depend on PNG codec

Signed-off-by: Mans Rullgard <>

ebb23027 01/20/2011 05:27 PM Justin Ruggles

cosmetics: wrap long line

Signed-off-by: Mans Rullgard <>

0a3d7697 01/20/2011 05:26 PM Justin Ruggles

Add function ff_iir_filter_flt() to accept floating-point input and output.

Signed-off-by: Mans Rullgard <>

e5fe6551 01/20/2011 02:28 PM Janne Grunau

mpegtsenc: prefer metadata keyed with "service_name"

title metadata is only used as fallback if no service_name is available.

Signed-off-by: Janne Grunau <>

e8315e78 01/20/2011 01:42 PM Georgi Chorbadzhiyski

Set service_provider and service_name in mpegts demuxer

Set service_provider and service_name in mpegts demuxer, previously
name and provider_name were set but since the muxer uses service_provider
and service_name use them.

Signed-off-by: Mans Rullgard <>

75aded83 01/20/2011 01:39 PM Anton Khirnov

id3v2: don't overwrite existing tags

Apparently some broken taggers prepend a new ID3v2 tag leaving the
existing one intact. Our parser currently reads all tags and overwrites
existing values with supposedly outdated ones.

fixes issue2419

Signed-off-by: Mans Rullgard <>

f7fcd6a2 01/20/2011 01:36 PM Anton Khirnov

id3v2: convert metadata after all the tags were read

Signed-off-by: Mans Rullgard <>

46a2da76 01/20/2011 01:36 PM Anton Khirnov

id3v2: make ff_id3v2_parse static

Signed-off-by: Mans Rullgard <>

c0dd5653 01/20/2011 11:34 AM Georgi Chorbadzhiyski

libavcodec minor version is > 99 so fix the formating

libavcodec minor version is > 99 so when printing the library versions
the output is a little bit broken:

libavutil    50. 36. 0 / 50.36. 0
libavcore 0. 16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0...
69688e71 01/20/2011 11:31 AM Georgi Chorbadzhiyski

Add service_provider and service_name metadata

This patch adds support in mpegts muxer for using service_provider and
service_name metadata to set service_provider_name and service_name
fields in SDT.

Example usage:
ffmpeg -i file.ts -f mpegts -re -acodec copy -vcodec copy -f mpegts \...

b9c7f66e 01/20/2011 01:34 AM Ronald S. Bultje

Fix horizontal/horizontal_up 8x8l intra prediction x86/simd functions.
The original functions did not work correctly for edge pixels, e.g.
when CODEC_FLAG_EMU_EDGE is set, leading to corrupt output in e.g. VLC.
Based on a patch by Daniel Kang <daniel d kang gmail com>....

c3897d76 01/19/2011 08:56 PM Justin Ruggles

Fix use of sstep/dstep in ff_iir_filter().

Signed-off-by: Mans Rullgard <>

a4f5af13 01/19/2011 12:51 PM Justin Ruggles

Add regression test for stereo s16le in voc.

Signed-off-by: Mans Rullgard <>

09a5c245 01/18/2011 10:17 PM Mans Rullgard

configure: fix mktemp test and fallback function

44caaa56 01/18/2011 08:48 PM Mans Rullgard

ARM: improve VFP ABI check

Recent gcc versions define ARM_PCS or __ARM_PCS_VFP to indicate the
VFP ABI in use, and ARM RVCT defines __SOFTFP
when using this ABI.
If none of these are defined, check $cross_prefix and $cc for the
substring "hardfloat", and finally fall back to a linker test. This...

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

armcc: suppress warning about hardfp compatibility

5a92140b 01/18/2011 08:48 PM Mans Rullgard

armcc: suppress 'assignment in condition' warning

3240b371 01/18/2011 08:48 PM Mans Rullgard

fate: simplify vp8 rules

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

a64enc: make PixelFormat arrays const