Statistics
| Branch: | Revision:

ffmpeg @ b5ec6383

# Date Author Comment
b5ec6383 01/28/2011 12:21 AM Justin Ruggles

cosmetics: indentation and spacing

9d06d7bc 01/28/2011 12:07 AM Justin Ruggles

Remove the add bias hack for the C version of DSPContext.float_to_int16_*().

97b04f5e 01/28/2011 12:06 AM John Stebbins

mov: add support for little-endian utf16 chapter names

Signed-off-by: Janne Grunau <>

795ed278 01/28/2011 12:06 AM Janne Grunau

movenc: byteswap codec_tag in mov_write_ms_tag

based on Alex Converse's "Fix ADPCM MS in mov muxing" patch

f2589642 01/28/2011 12:06 AM Baptiste Coudurier

In mov muxer, mux adpcm_ms and adpcm_ima_wav the way quicktime supports it

In mov demuxer, set adpcm_ms and adpcm_ima_wav frame size to stsd samples per packet.

Signed-off-by: Janne Grunau <>

37cb3eb5 01/28/2011 12:04 AM Justin Ruggles

Add special case for 2nd-order IIR filter.

40% faster in ff_iir_filter_flt() when c->order == 2.

d1b6f33b 01/27/2011 09:03 AM Luca Barbato

Add ff_ to AVHWAccel decoders

That unbreaks compilation of vaapi and dxva2

Signed-off-by: Janne Grunau <>

c6610a21 01/26/2011 10:10 PM Diego Elio Pettenò

Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.

This also lists the objects from those two libraries as internal (by adding
the ff_ prefix) so that they can then be hidden via linker scripts.

225b6d7f 01/26/2011 10:03 PM Anton Khirnov

mov: simplify mov_read_chapters() by using avio_get_str16be

It probably also fixes a memleak or two.

Signed-off-by: Mans Rullgard <>

c4f8765a 01/26/2011 10:03 PM Mans Rullgard

Revert "mov: simplify mov_read_chapters() by using avio_get_str16be"

This reverts commit c34461b35b68ff1f3d04540e0279383c51be8cee.
The wrong version of the patch was committed.

22893e10 01/26/2011 08:37 PM Ronald S. Bultje

VP8: don't overread edges on fourtap MC.

Fix C VP8 H+V MC functions which do two-dimensional 4/6-tap filters to
not overread beyond their edges if the second filter is 4-tap, since
the outer pixels aren't there anymore since
44002d8323023c35f51d523a7d305e45103ba7a1.

d36beb3f 01/26/2011 04:08 PM Diego Elio Pettenò

Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.

None of these symbols should be accessed directly, so declare them as
hidden.

Signed-off-by: Mans Rullgard <>

2d162e38 01/26/2011 04:08 PM Diego Elio Pettenò

Make ff_cmap_read_palette static to libavcodec/iff.c. Delete iff.h.

The iff.h header only declared one function that is now static, the
libavformat/iff.c source file wasn't using it before. Drop the file
entirely.

Signed-off-by: Mans Rullgard <>

4c57cde9 01/26/2011 03:35 PM Justin Ruggles

Add ff_ prefix to ac3_common_init().

Signed-off-by: Mans Rullgard <>

24e3ad30 01/26/2011 03:35 PM Justin Ruggles

ac3: Remove ff_ac3_critical_band_size_tab.

It is only used to generate band_start_tab, which about the same size, at
runtime, so it's simpler just to always hardcode band_start_tab.

Signed-off-by: Mans Rullgard <>

eb7ccf8f 01/26/2011 03:33 PM Diego Elio Pettenò

Make the avfilter debug functions and macros static to avfilter.c

This removes ff_get_ref_perms_string, ff_dprintf_ref and ff_dprintf_link
fro the interface of libavfilter.

Signed-off-by: Mans Rullgard <>

7767d8d3 01/26/2011 03:32 PM Diego Elio Pettenò

Mark C base versions of FFT functions static to fft.c

Signed-off-by: Mans Rullgard <>

b09f5482 01/26/2011 02:07 AM Marco Gittler

Pass field order flag to libx264

Signed-off-by: Jason Garrett-Glaser <>

535638b5 01/26/2011 12:02 AM Georgi Chorbadzhiyski

mpegtsenc: set reserved bits to 1 in PCR field

The reserved bits between PCR base and extension fields must be
set to 1.

Signed-off-by: Mans Rullgard <>

1a886748 01/25/2011 09:11 PM Diego Elio Pettenò

Make ff_add_wav static to ra144.c

Signed-off-by: Janne Grunau <>

57c4d01e 01/25/2011 09:10 PM Diego Elio Pettenò

Make ff_rtsp_send_cmd_with_content_async static to rtsp.c.

Signed-off-by: Janne Grunau <>

13eb6b90 01/25/2011 09:07 PM Diego Elio Pettenò

Make ff_h264_find_frame_end static to h264.c; delete h264_parser.h

The header is empty after making the function static, so delete it and
drop its usage.

Signed-off-by: Janne Grunau <>

cf1d794a 01/25/2011 09:05 PM Diego Elio Pettenò

Make ff_ass_subtitle_header static to ass.c

Signed-off-by: Janne Grunau <>

d625a32d 01/25/2011 08:48 PM Diego Elio Pettenò

Make ff_sin_tabs constant to rdft.c

Signed-off-by: Janne Grunau <>

ebb06d96 01/25/2011 08:48 PM Diego Elio Pettenò

Make ff_spatial_idwt_{init, slice} static to dwt.c

Both functions seem to be commanded by the ff_spatial_idwt function
instead.

Signed-off-by: Janne Grunau <>

f2e246f5 01/25/2011 08:48 PM Diego Elio Pettenò

Make ff_png_pass_xmin and ff_png_pass_xshift static to png.c.

Signed-off-by: Janne Grunau <>

676f1f53 01/25/2011 08:48 PM Diego Elio Pettenò

Remove unused ff_ac3_parse_header_full function.

Signed-off-by: Janne Grunau <>

a3dffc06 01/25/2011 08:48 PM Diego Elio Pettenò

Make ff_mxf_pixel_layouts static to mxf.c.

Also make it an anonymous structure as never it is accessed by name.

Signed-off-by: Janne Grunau <>

85297319 01/25/2011 08:48 PM Diego Elio Pettenò

Make ff_h264_decode_rbsp_trailing static to h264.c

Signed-off-by: Janne Grunau <>

101e1f6f 01/25/2011 08:48 PM Diego Elio Pettenò

Make ff_interleave_compare_dts static to utils.c.

Signed-off-by: Janne Grunau <>

c34461b3 01/25/2011 08:48 PM Anton Khirnov

mov: simplify mov_read_chapters() by using avio_get_str16be

It probably also fixes a memleak or two.

Signed-off-by: Janne Grunau <>

2934cd9d 01/25/2011 08:48 PM Anton Khirnov

asfdec: remove some commented-out cruft

Signed-off-by: Janne Grunau <>

93b78d12 01/25/2011 08:48 PM Anton Khirnov

lavf: make a variant of ff_get_str16_nolen public

It will be useful in mp3 demuxer and hopeful some other places.

Signed-off-by: Janne Grunau <>

d0f0f628 01/25/2011 08:32 PM Mans Rullgard

armcc: filter out non-gcc options from ASFLAGS

This allows passing armcc-specific flags with --extra-cflags without
choking the assembler.

Signed-off-by: Mans Rullgard <>

9d201b26 01/25/2011 08:32 PM Mans Rullgard

configure: add filter_out() function

This adds a function to filter out words matching a pattern
from a list.

Signed-off-by: Mans Rullgard <>

44002d83 01/25/2011 06:50 PM Ronald S. Bultje

Don't do edge emulation unless the edge pixels will be used in MC.

Do not emulate larger edges than we will actually use for this round of
MC. Decoding goes from avg+SE 29.972+/-0.023sec to 29.856+/-0.023, i.e.
0.12sec or ~0.4% faster.

c0ae5152 01/25/2011 05:34 PM Jai Menon

ffmetaenc: Use correct format specifiers.

Use printf format macros from inttypes.h.
Additionally, this fixes a warning when building with clang.

e781c4e6 01/25/2011 03:57 PM Mans Rullgard

intfloat_readwrite: include "mathematics.h" for fallback macros

This allows this file to build on systems lacking NAN or INFINITY
in math.h.

Signed-off-by: Mans Rullgard <>

1e48cdaa 01/25/2011 03:57 PM Mans Rullgard

tty: remove superflous #include <strings.h>

Signed-off-by: Mans Rullgard <>

21c90012 01/25/2011 03:50 PM Mans Rullgard

ac3: remove ff_ac3_critical_band_size_tab[] external declaration

This fixes compilation broken by 6ed3b504f984dc6cefde8d57a57726f9d30e5033

Signed-off-by: Mans Rullgard <>

6ed3b504 01/25/2011 03:10 PM Diego Elio Pettenò

Move ff_ac3_critical_band_size_tab in ac3.c for non-hardcoded tables.

This symbol is only ever used to calculate the non-hardcoded tables, so
only enable it in that case, and static to the source unit that uses it.

Signed-off-by: Mans Rullgard <>

362bfe29 01/25/2011 03:09 PM Diego Elio Pettenò

Remove unused ac3_parametric_bit_allocation function.

Signed-off-by: Mans Rullgard <>

3d157bf3 01/25/2011 01:43 PM Mans Rullgard

Makefile: fix cleaning of tools in tests directory

The variable TESTPROGS is reset by the library makefiles,
use another name.

Signed-off-by: Mans Rullgard <>

54fe299b 01/25/2011 01:42 PM Daniel Verkamp

configure: move network tests before results are needed

This moves network_extralibs setup before use so that the link tests
for network functions work correctly.

Signed-off-by: Mans Rullgard <>

6e78c8ee 01/25/2011 12:52 PM Georgi Chorbadzhiyski

mpegtsenc: remove unused variables

Remove two variables that were not used and caused the following
warnings:

CC libavformat/mpegtsenc.o
libavformat/mpegtsenc.c: In function 'mpegts_write_section':
libavformat/mpegtsenc.c:72:18: warning: unused variable 'ts'...

3adbe49f 01/25/2011 12:46 PM Daniel Verkamp

Fix ALLPROGS_G so that *_g binaries get cleaned properly

Signed-off-by: Mans Rullgard <>

e153e9a5 01/25/2011 03:35 AM Mans Rullgard

latm: remove superflous #includes

Signed-off-by: Mans Rullgard <>

6081f8c4 01/25/2011 02:43 AM Mans Rullgard

avidec: make print_tag() a macro and remove related ifdefs

The dprintf macro is a no-op if DEBUG is not defined, so there
is no need to guard it here.

Signed-off-by: Mans Rullgard <>

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

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

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

Reindent.

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

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