| Branch: | Revision:

ffmpeg @ 445996aa

# Date Author Comment
445996aa 01/31/2011 03:42 PM Georgi Chorbadzhiyski

Replace defines in libavformat/mpegtsenc.c with AVOptions

Around 01/28/11 18:56, Ronald S. Bultje scribbled:

That patch is now merged, can you submit the update to muxers.texi?
Then we'll apply the whole thing.

See attached. I hope the documentation is enough....

e771d2e3 01/31/2011 03:33 PM Stefano Sabatini

Add documentation for the image2 muxer.

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

22e9277a 01/31/2011 02:25 PM Reimar Döffinger

VC1testenc: convert pts values to correct time-base.

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

45430099 01/31/2011 01:58 PM Ronald S. Bultje

asf/wtv: use service_provider and service_name metadata tags

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

fa34a362 01/31/2011 12:55 PM Stefano Sabatini

Make ffmpeg warns the user when the selected sample format is ignored.

Signed-off-by: Mans Rullgard <>

73be29b0 01/30/2011 08:12 PM Jason Garrett-Glaser

Slightly simplify VP8 inter_predict

Merge an if and a switch.

28550804 01/30/2011 07:02 PM Stefano Sabatini

In ffplay:get_video_frame(), use frame->pkt_pts rather than reordered_opaque.

AVCodecContext.reordered_opaque is deprecated for this specific use.

Signed-off-by: Mans Rullgard <>

13156f40 01/30/2011 05:52 PM Stefano Sabatini

ffplay: in video_thread(), use av_dlog() for timestamp logging.

Disable logging of rescaled timestamps if DEBUG is not enabled.
Avoid debug log spamming with -loglevel debug.

Signed-off-by: Mans Rullgard <>

665132e6 01/30/2011 04:39 PM Vasyl' Vavrychuk

mpegts: remove get_pts duplicate of ff_parse_pes_pts.

Signed-off-by: Vasyl' Vavrychuk <>
Signed-off-by: Mans Rullgard <>

d33ed7b3 01/30/2011 01:05 AM Mans Rullgard

Enable native build on QNX/x86

dfd2a005 01/29/2011 10:55 PM Luca Barbato

Replace dprintf with av_dlog

dprintf clashes with POSIX.1-2008

243f8241 01/29/2011 06:58 PM Justin Ruggles

Flush final frames in libfaac encoder.

Gives decoded output identical in length to faac commandline encoder.
Fixes Issue 670.

Signed-off-by: Mans Rullgard <>

e0eb963a 01/29/2011 06:09 PM Vitor Sessak

Fix memory leak in ALS decoder in big endian systems

Signed-off-by: Mans Rullgard <>

d461a473 01/29/2011 05:14 PM Mans Rullgard

Rearrange MpegEncContext to simplify access from asm

This moves the fields needed by asm near the top, before any
structs or other members which complicate the offset calculation.
Modifying other structs will no longer require updating the offsets,
and the asm code is slightly simpler due to the smaller offsets....

a8f0814a 01/29/2011 03:57 PM Janne Grunau

doc: modify style for texi2html 1.78+

The generated HTML files are similar to the ones generated with
texi2html 1.56k used on the website.

Tested with texi2html 1.78 and 5.0. 1.78 is the minimal recommended

The removed @sp from the titlepage section were ignored until...

3af1fe82 01/29/2011 03:32 PM Vitor Sessak

Fix overread in altivec DSP function sad16

Signed-off-by: Mans Rullgard <>

ce20edb7 01/29/2011 01:48 PM Reimar Döffinger

Vorbis-in-Ogg: Do not set timebase to invalid values

Avoids an assert when the sample rate is invalid and the timebase
is thus set to e.g. 1/0.
Sample file is

This is a quick fix for a crash, not a final solution....

0745116c 01/29/2011 04:39 AM Mans Rullgard

ARM: update MpegEncContext offsets

2e279598 01/29/2011 03:13 AM Ronald S. Bultje

Move ff_emulated_edge_mc() into DSPContext.

e5262ec4 01/29/2011 03:13 AM Ronald S. Bultje

Optimize C version of ff_emulated_edge_mc().

From ~780 cycles to 551 cycles, mostly just by using libc memcpy()
instead of manually shuffling individual bytes around.

4d54df8e 01/28/2011 10:33 PM Peter Ross

mpegtsenc: support CODEC_ID_AAC_LATM

$subject. Have used this for loopback testing with mpegts.c.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
[2. text/x-diff; 0001-mpegtsenc-support-CODEC_ID_AAC_LATM.patch]

From 0f7f9db4b7da1793996af6dda84298507703759a Mon Sep 17 00:00:00 2001...

a0788cc6 01/28/2011 08:41 PM Dave Yeo

rtspenc: include os_support.h for system without HAVE_POLL_H

fix compile on OS/2

Signed-off-by: Janne Grunau <>

04295054 01/28/2011 08:33 PM Anton Khirnov

asfdec: ensure that the whole tag is read.

Signed-off-by: Janne Grunau <>

362d8f7d 01/28/2011 05:23 PM Mans Rullgard

os_support: make poll() fallbacks conditional on CONFIG_NETWORK

poll() is only used by networking code, so the fallback should
only be built if networking is enabled. Also remove CONFIG_FFSERVER
condition from the declarations.

This should fix building on systems without poll(), broken...

4fc9ff0a 01/28/2011 05:04 PM Stefano Sabatini

Make the image2 demuxer log more verbose

Add an error message in case the user requests to write more than one file
and the path does not contain a "%d" or "%0Nd" pattern.

Signed-off-by: Janne Grunau <>

79dca23d 01/28/2011 05:02 PM Mans Rullgard

Update mpegts test reference

The output was changed by a7827a17c6b3388322350456d445c94b3a82cd25.

Signed-off-by: Mans Rullgard <>

e5c82df8 01/28/2011 05:00 PM Alex Converse

aacdec: Convert some loop copies into memcpy()s.

Signed-off-by: Mans Rullgard <>

85466e1e 01/28/2011 04:46 PM Stefano Sabatini

Add muxers.texi file.

Signed-off-by: Janne Grunau <>

a7827a17 01/28/2011 04:46 PM Georgi Chorbadzhiyski

In mpegts "reserved_future_use" field must be set to 1 in SDT table

According to EN 300 468 section 3.1 (Definitions):

Unless otherwise specified within the present document all
"reserved_future_use" bits is set to "1".

This was not the case for SDT generation so this patch fixes it....

3c802cab 01/28/2011 04:27 PM Stefano Sabatini

In the rawvideo decoder, set pkt_pts in the output frame.

Signed-off-by: Janne Grunau <>

3e5bc7ff 01/28/2011 04:27 PM Stefano Sabatini

In the start_frame() debug log, print the reference pos value rather than the evaluated value converted to int.

That's required because -1 is evaluated as NAN, which converted back
to int looks like a random number, this is especially annoying when
debugging sources with undefined pos (as the video4linux2 device)....

9d4bdcb7 01/28/2011 03:20 PM Ronald S. Bultje

Fix VP8 aliasing problems.

Replace * (uint32_t *) buf accesses with AV_WN32A/AV_COPY32.

f81c7ac7 01/28/2011 02:45 PM Luca Barbato

rtsp: make ff_sdp_parse return value forwarded

the sdp demuxer did not forward it at all while the rtsp demuxer assumed
a single kind of error

a8475bbd 01/28/2011 02:45 PM Luca Barbato

os: replace select with poll

Select has limitations on the fd values it could accept and silently
breaks when it is reached.

5ce5dbc5 01/28/2011 11:35 AM Alex Converse

Make ff_float_to_int16*_c() static.

Signed-off-by: Mans Rullgard <>

e6288640 01/28/2011 01:45 AM Diego Elio Pettenò

Hide demuxers', muxers' and protocols' objects via the ld version script.

This reduces the symbols exported by libavformat from 699 to 451.

Signed-off-by: Mans Rullgard <>

ac28ce5f 01/28/2011 01:37 AM Diego Elio Pettenò

Hide the now-prefixed decoders, encoders, parsers, bsf, hwaccel objects.

This significantly reduces the size of the symbol table in the generated ELF
shared object (as well as the other linked tables).

Signed-off-by: Mans Rullgard <>

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

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

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

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

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

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