ffmpeg.git
8 years agoac3enc: avoid memcpy() of exponents and baps in EXP_REUSE case by using
Justin Ruggles [Mon, 28 Mar 2011 18:01:27 +0000 (14:01 -0400)]
ac3enc: avoid memcpy() of exponents and baps in EXP_REUSE case by using
exponent reference blocks.

8 years agoChronomaster DFA decoder
Kostya Shishkov [Tue, 15 Mar 2011 08:37:48 +0000 (09:37 +0100)]
Chronomaster DFA decoder

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoframebuffer device demuxer
Stefano Sabatini [Mon, 7 Mar 2011 17:54:52 +0000 (18:54 +0100)]
framebuffer device demuxer

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agocosmetics: fix dashed line length after 070c5d0
Janne Grunau [Mon, 28 Mar 2011 07:53:40 +0000 (09:53 +0200)]
cosmetics: fix dashed line length after 070c5d0

8 years agohttp: header field names are case insensitive
Tyler [Sun, 27 Mar 2011 00:59:09 +0000 (17:59 -0700)]
http: header field names are case insensitive

Amazon S3 sends header field names all lowercase.
This is actually acceptable according to the HTTP standard.

http://tools.ietf.org/html/rfc2616#section-4.2

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoac3enc: Add codec-specific options for writing AC-3 metadata.
Justin Ruggles [Fri, 25 Mar 2011 21:12:26 +0000 (17:12 -0400)]
ac3enc: Add codec-specific options for writing AC-3 metadata.

8 years agoRemove arrozcru URL from documentation
Ramiro Polla [Sun, 27 Mar 2011 00:22:23 +0000 (21:22 -0300)]
Remove arrozcru URL from documentation

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agosndio support for playback and record
Brad [Sat, 26 Mar 2011 23:03:41 +0000 (19:03 -0400)]
sndio support for playback and record

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agodsputil: allow to skip drawing of top/bottom edges.
Alexander Strange [Sat, 26 Mar 2011 21:31:13 +0000 (17:31 -0400)]
dsputil: allow to skip drawing of top/bottom edges.

8 years agoSplit fate-psx-str-v3 into a video-only and audio-only test.
Ronald S. Bultje [Sat, 26 Mar 2011 20:28:16 +0000 (16:28 -0400)]
Split fate-psx-str-v3 into a video-only and audio-only test.

8 years agomov: set audio service type for AC-3 from bitstream mode in the 'dac3' atom.
Justin Ruggles [Thu, 24 Mar 2011 16:42:05 +0000 (12:42 -0400)]
mov: set audio service type for AC-3 from bitstream mode in the 'dac3' atom.

8 years agoGet audio_service_type for AC-3 based on bitstream mode in the AC-3 parser
Justin Ruggles [Thu, 24 Mar 2011 16:10:38 +0000 (12:10 -0400)]
Get audio_service_type for AC-3 based on bitstream mode in the AC-3 parser
and decoder, and vice-versa for the AC-3 encoder.

8 years agoUse audio_service_type to set stream disposition.
Justin Ruggles [Thu, 24 Mar 2011 16:09:02 +0000 (12:09 -0400)]
Use audio_service_type to set stream disposition.

8 years agoAdd APIchanges entry for audio_service_type.
Justin Ruggles [Thu, 24 Mar 2011 16:08:13 +0000 (12:08 -0400)]
Add APIchanges entry for audio_service_type.

8 years agoAdd audio_service_type field to AVCodecContext for encoding and reporting
Justin Ruggles [Thu, 24 Mar 2011 16:00:21 +0000 (12:00 -0400)]
Add audio_service_type field to AVCodecContext for encoding and reporting
of the service type in the audio bitstream.

8 years agoconfigure: in check_ld, place new -l flags before existing ones
Mans Rullgard [Fri, 25 Mar 2011 19:26:10 +0000 (19:26 +0000)]
configure: in check_ld, place new -l flags before existing ones

This fixes some library tests when --as-needed is in effect.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agosupport @heading, @subheading, @subsubheading, and @subsubsection in
Justin Ruggles [Thu, 24 Mar 2011 22:39:19 +0000 (18:39 -0400)]
support @heading, @subheading, @subsubheading, and @subsubsection in
texi2pod.pl

8 years agodoc: update build system documentation
Luca Barbato [Mon, 21 Mar 2011 23:20:56 +0000 (00:20 +0100)]
doc: update build system documentation

Split normal build system documentation and the fate one.

Document THREADS make variable and provide an introduction to fate.
Document DESTDIR make variable and add some generic targets.

8 years agoaacenc: indentation
Young Han Lee [Fri, 25 Mar 2011 03:17:48 +0000 (12:17 +0900)]
aacenc: indentation

8 years agoaacenc: fix the side calculation in search_for_ms
Young Han Lee [Thu, 24 Mar 2011 01:49:36 +0000 (10:49 +0900)]
aacenc: fix the side calculation in search_for_ms

8 years agovp8.c: rename EDGE_* to VP8_EDGE_*.
Alexander Strange [Fri, 25 Mar 2011 01:20:13 +0000 (21:20 -0400)]
vp8.c: rename EDGE_* to VP8_EDGE_*.

8 years agomatroskadec: set default duration for simple block
John Stebbins [Thu, 24 Mar 2011 23:34:18 +0000 (00:34 +0100)]
matroskadec: set default duration for simple block

When a normal Block is parsed, duration is initialized to
AV_NOPTS_VALUE.  If it is not changed, then the track's default
duration is used.  But for SimpleBlock, duration is initialized to
0 instead of AV_NOPTS_VALUE.  This is due to the difference in how
EBML_NEST vs EBML_PASS are processed.  Setting duration to 0 leads
eventually to wrongly estimate the frame duration in util.c

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoWhen building for MinGW32 disable strict ANSI compliancy.
Diego Elio Pettenò [Thu, 24 Mar 2011 11:18:35 +0000 (12:18 +0100)]
When building for MinGW32 disable strict ANSI compliancy.

When -std=c99 is used, GCC defines __STRICT_ANSI__ to hide non-ANSI
interfaces; on MinGW32, when this macro is defined, some functions that are
part of POSIX but not of Windows APIs are disabled, including strcasecmp().

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoARM: fix ff_apply_window_int16_neon() prototype
Mans Rullgard [Thu, 24 Mar 2011 20:22:34 +0000 (20:22 +0000)]
ARM: fix ff_apply_window_int16_neon() prototype

The length argument should be unsigned.  No change in code.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoconfigure: check for --as-needed support early
Mans Rullgard [Sun, 6 Mar 2011 13:57:34 +0000 (13:57 +0000)]
configure: check for --as-needed support early

This moves the check for --as-needed linker support before all
library tests, ensuring consistent behaviour between the checks
and the actual link step.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoARM: NEON optimised apply_window_int16()
Mans Rullgard [Wed, 23 Mar 2011 01:45:43 +0000 (01:45 +0000)]
ARM: NEON optimised apply_window_int16()

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoac3enc: NEON optimised shift functions
Mans Rullgard [Sat, 12 Mar 2011 23:16:06 +0000 (23:16 +0000)]
ac3enc: NEON optimised shift functions

8 years agoac3enc: NEON optimised ac3_max_msb_abs_int16 and ac3_exponent_min
Mans Rullgard [Wed, 9 Mar 2011 19:51:50 +0000 (19:51 +0000)]
ac3enc: NEON optimised ac3_max_msb_abs_int16 and ac3_exponent_min

8 years agompeg12.c: fix slice threading for mpeg2 field picture mode.
Ronald S. Bultje [Thu, 24 Mar 2011 16:16:22 +0000 (12:16 -0400)]
mpeg12.c: fix slice threading for mpeg2 field picture mode.

Fixes "make THREADS=2 fate-mpeg2-field-enc".

8 years agoffmetadec.c: fix compiler warnings.
Ronald S. Bultje [Thu, 24 Mar 2011 11:41:03 +0000 (07:41 -0400)]
ffmetadec.c: fix compiler warnings.

8 years agoconfigure: Don't explicitly disable ffplay or in/outdevices on dos
Martin Storsjö [Wed, 23 Mar 2011 12:49:37 +0000 (12:49 +0000)]
configure: Don't explicitly disable ffplay or in/outdevices on dos

The normal dependency tracking system disables them just fine.

8 years agoconfigure: Remove the explicit disabling of ffserver
Martin Storsjö [Wed, 23 Mar 2011 11:13:31 +0000 (13:13 +0200)]
configure: Remove the explicit disabling of ffserver

It is automatically disabled on both mingw and dos due to
the lack of fork.

8 years agoconfigure: Add fork as a dependency to ffserver
Martin Storsjö [Wed, 23 Mar 2011 10:26:58 +0000 (12:26 +0200)]
configure: Add fork as a dependency to ffserver

8 years agoavio: make udp_set_remote_url/get_local_port internal.
Anton Khirnov [Tue, 8 Mar 2011 09:35:52 +0000 (10:35 +0100)]
avio: make udp_set_remote_url/get_local_port internal.

8 years agoasfdec: also subtract preroll when reading simple index object
Vladimir Pantelic [Thu, 17 Mar 2011 21:34:52 +0000 (22:34 +0100)]
asfdec: also subtract preroll when reading simple index object

This was missed when ASF was changed to return timestamps
without preroll.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agomatroskaenc: remove a variable that's unused after bc17bd9.
Anton Khirnov [Wed, 23 Mar 2011 10:09:34 +0000 (11:09 +0100)]
matroskaenc: remove a variable that's unused after bc17bd9.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: cosmetics - nicer vertical alignment.
Anton Khirnov [Wed, 23 Mar 2011 11:58:02 +0000 (11:58 +0000)]
avio: cosmetics - nicer vertical alignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoRemove unnecessary icc version checks
Mans Rullgard [Wed, 23 Mar 2011 11:30:44 +0000 (11:30 +0000)]
Remove unnecessary icc version checks

With unknown attribute warnings disabled, these checks are no
longer needed.  Removing them improves readability while having
no effect on generated code.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoDisable 'attribute "foo" ignored' warnings from icc
Mans Rullgard [Wed, 23 Mar 2011 11:24:10 +0000 (11:24 +0000)]
Disable 'attribute "foo" ignored' warnings from icc

ICC lies about the version of gcc it emulates, which results
in unsupported attributes sometimes being used.  The warning
is an annoyance and should be disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agortsp: Don't use a locale dependent format string
Martin Storsjö [Wed, 23 Mar 2011 08:26:22 +0000 (10:26 +0200)]
rtsp: Don't use a locale dependent format string

In this particular case, we aren't ever printing anything else than
0.000 anyway.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdd xd55 codec tag for XDCAM HD422 720p25 CBR files.
Tomas Härdin [Mon, 21 Mar 2011 11:06:56 +0000 (12:06 +0100)]
Add xd55 codec tag for XDCAM HD422 720p25 CBR files.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoconfigure: get libavcodec version from new version.h header
Mans Rullgard [Wed, 23 Mar 2011 09:39:00 +0000 (09:39 +0000)]
configure: get libavcodec version from new version.h header

This fixes shared library versioning after 3dd851c.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agolavc: move the version macros to a new installed header.
Anton Khirnov [Mon, 14 Mar 2011 20:58:13 +0000 (21:58 +0100)]
lavc: move the version macros to a new installed header.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agomatroskaenc: simplify get_aac_sample_rates by using ff_mpeg4audio_get_config
Anton Khirnov [Mon, 21 Mar 2011 08:05:36 +0000 (09:05 +0100)]
matroskaenc: simplify get_aac_sample_rates by using ff_mpeg4audio_get_config

This also fixes broken SBR detection, which produced files with double
sample rate since 8ae0fa2.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoDo not use format string "%0.3f" for RTSP Range field.
Carl Eugen Hoyos [Tue, 22 Mar 2011 21:38:44 +0000 (22:38 +0100)]
Do not use format string "%0.3f" for RTSP Range field.

The format string was locale-depending.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdd apply_window_int16() to DSPContext with x86-optimized versions and use it
Justin Ruggles [Sun, 20 Mar 2011 17:31:36 +0000 (13:31 -0400)]
Add apply_window_int16() to DSPContext with x86-optimized versions and use it
in the ac3_fixed encoder.

8 years agoDocument usage of import libraries created by dlltool
Martin Storsjö [Tue, 22 Mar 2011 13:07:16 +0000 (15:07 +0200)]
Document usage of import libraries created by dlltool

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoconfigure: Set the correct lib target for arm/wince dlltool
Martin Storsjö [Tue, 22 Mar 2011 13:07:15 +0000 (15:07 +0200)]
configure: Set the correct lib target for arm/wince dlltool

The correct machine name for dlltool is arm-wince.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agofate: simplify regression-funcs.sh
Luca Barbato [Mon, 21 Mar 2011 23:13:48 +0000 (00:13 +0100)]
fate: simplify regression-funcs.sh

Factor ffmpeg calls using run_ffmpeg()

8 years agofate: add support for multithread testing
Luca Barbato [Mon, 21 Mar 2011 23:07:54 +0000 (00:07 +0100)]
fate: add support for multithread testing

Add a THREADS variable to fate calls.

8 years agoFix an infinite loop when RoQ encoded generated a frame with a size greater than...
Vitor Sessak [Sun, 20 Mar 2011 17:30:29 +0000 (18:30 +0100)]
Fix an infinite loop when RoQ encoded generated a frame with a size greater than the maximum valid size.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdd kbdwin.o to AC3 decoder
Kieran Kunhya [Tue, 22 Mar 2011 22:17:41 +0000 (22:17 +0000)]
Add kbdwin.o to AC3 decoder

Fixes --disable-everything --enable-decoder=ac3

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoDetect byte-swapped AC-3 and support decoding it directly.
Reimar Döffinger [Tue, 22 Mar 2011 18:22:07 +0000 (14:22 -0400)]
Detect byte-swapped AC-3 and support decoding it directly.

This allows the AC-3 decoder to be used directly with RealMedia
decoders that unlike the libavformat one do not byte-swap automatically.
Since the new code is only used in case we would fail directly otherwise
there should be no risk for regressions.

8 years agocosmetics: indentation
Justin Ruggles [Tue, 22 Mar 2011 18:14:41 +0000 (14:14 -0400)]
cosmetics: indentation

8 years agoAlways copy input data for AC3 decoder.
Justin Ruggles [Tue, 22 Mar 2011 18:11:34 +0000 (14:11 -0400)]
Always copy input data for AC3 decoder.

Depending on error_recognition is not correct, low values do
certainly not mean it is ok to crash.

Based on a patch by Reimar Döffinger <Reimar.Doeffinger@gmx.de>

8 years agoac3enc: make sym_quant() branch-free
Justin Ruggles [Tue, 22 Mar 2011 18:36:18 +0000 (14:36 -0400)]
ac3enc: make sym_quant() branch-free

8 years agocosmetics: indentation
Justin Ruggles [Tue, 22 Mar 2011 03:33:00 +0000 (23:33 -0400)]
cosmetics: indentation

8 years agoAdd a CPU flag for the Atom processor.
Justin Ruggles [Tue, 22 Mar 2011 03:32:40 +0000 (23:32 -0400)]
Add a CPU flag for the Atom processor.

The Atom has SSSE3 support, which is useful in many cases, but sometimes the
SSSE3 version is slower than the SSE2 equivalent on the Atom, but is generally
faster on other processors supporting SSSE3. This flag allows for selectively
disabling certain SSSE3 functions on the Atom.

8 years agoid3v2: skip broken tags with invalid size
Anton Khirnov [Tue, 22 Mar 2011 09:35:35 +0000 (10:35 +0100)]
id3v2: skip broken tags with invalid size

fixes issue2649.

8 years agoid3v2: don't explicitly skip padding
Anton Khirnov [Tue, 22 Mar 2011 09:35:34 +0000 (10:35 +0100)]
id3v2: don't explicitly skip padding

It's pointless, since there's a seek to the end of tag later.

8 years agoMake sure kbhit() is in conio.h
Dave Yeo [Tue, 22 Mar 2011 03:47:48 +0000 (03:47 +0000)]
Make sure kbhit() is in conio.h

Conio.h is a non-standard header and may not have kbhit()
prototyped. This fixes compile on OS/2 where the EMX version (we're
using a fork) of conio.h only has getch() and getche().

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agofate: update wmv8-drm reference
Mans Rullgard [Tue, 22 Mar 2011 02:49:37 +0000 (02:49 +0000)]
fate: update wmv8-drm reference

This updates the wmv8-drm reference after c47d383.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agovc1: make P-frame deblock filter bit-exact.
Ronald S. Bultje [Tue, 22 Mar 2011 01:26:26 +0000 (21:26 -0400)]
vc1: make P-frame deblock filter bit-exact.

8 years agoconfigure: Add the -D parameter to the dlltool command
Martin Storsjö [Mon, 21 Mar 2011 20:41:38 +0000 (22:41 +0200)]
configure: Add the -D parameter to the dlltool command

This is required for the generated .lib file to actually
be usable by MSVC.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoamr: Set the AVFMT_GENERIC_INDEX flag
Martin Storsjö [Wed, 9 Feb 2011 10:19:39 +0000 (12:19 +0200)]
amr: Set the AVFMT_GENERIC_INDEX flag

This makes the amr demuxer support seeking, closing roundup
issue 2593.

8 years agoamr: Set the pkt->pos field properly to the start of the packet
Martin Storsjö [Wed, 9 Feb 2011 10:16:51 +0000 (12:16 +0200)]
amr: Set the pkt->pos field properly to the start of the packet

Previously, the field pointed to the second byte of the packet
(which is the first byte of the actual AMR payload).

8 years agoamr: Set the codec->bit_rate field based on the last packet
Martin Storsjö [Wed, 9 Feb 2011 10:13:32 +0000 (12:13 +0200)]
amr: Set the codec->bit_rate field based on the last packet

This allows libavformat to guess an estimated duration for
amr files.

For streams with varying bit rates (or with silence descriptors
or "no frame" blocks) the guess is, of course, inaccurate.

8 years agortsp: Specify unicast for TCP interleaved streams, too
Martin Storsjö [Mon, 21 Mar 2011 12:19:09 +0000 (14:19 +0200)]
rtsp: Specify unicast for TCP interleaved streams, too

According to the RFC, the default is multicast if nothing is
specified, which doesn't make sense for TCP.

According to a bug report, some Axis camera models give a
"400 Bad Request" error if this is omitted.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoSet the correct target for mingw64 dlltool
Luca Barbato [Mon, 21 Mar 2011 19:22:51 +0000 (20:22 +0100)]
Set the correct target for mingw64 dlltool

That fixes .lib creation for the win64 target.

8 years agoapplehttp: Change the variable for stream position in seconds into int64_t
Martin Storsjö [Mon, 21 Mar 2011 10:20:18 +0000 (12:20 +0200)]
applehttp: Change the variable for stream position in seconds into int64_t

A similar variable for the total stream duration was changed to
int64_t in b79c3df08807c96a945, due to overflows in some odd
streams.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoffplay: Don't assume ic->pb is non-null
Martin Storsjö [Mon, 21 Mar 2011 13:52:54 +0000 (15:52 +0200)]
ffplay: Don't assume ic->pb is non-null

This fixes crashes on exit when plaing some RealRTSP streams
(among other), e.g.
rtsp://dl.lib.brown.edu:554/areserves/1093545294660883.mp3.
These crashes have been present since 3e68b3ba7b015cf21.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoid3v2: simplify error handling.
Anton Khirnov [Tue, 15 Mar 2011 06:54:22 +0000 (07:54 +0100)]
id3v2: simplify error handling.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoid3v2: explicitly seek to the end of the tag after reading
Anton Khirnov [Thu, 17 Mar 2011 06:10:23 +0000 (07:10 +0100)]
id3v2: explicitly seek to the end of the tag after reading

Current code might stop in the middle of an invalid tag.

fixes issue2650

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavio: make av_url_read_fseek/fpause internal.
Anton Khirnov [Mon, 14 Mar 2011 19:38:59 +0000 (20:38 +0100)]
avio: make av_url_read_fseek/fpause internal.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agovc1: slice support.
Ronald S. Bultje [Mon, 21 Mar 2011 14:00:43 +0000 (10:00 -0400)]
vc1: slice support.

Also reset coded_block at each new slice, fixes problems in slice playback.

8 years agovc1: fix up memleaks in the error codepath.
Ronald S. Bultje [Tue, 1 Mar 2011 16:37:55 +0000 (11:37 -0500)]
vc1: fix up memleaks in the error codepath.

Introduce end: and err: labels at the end of vc1_decode_frame(), which
will clean up allocated memory consistently.

8 years agovc1: warn for unimplemented pan-scan feature.
Ronald S. Bultje [Tue, 1 Mar 2011 16:37:55 +0000 (11:37 -0500)]
vc1: warn for unimplemented pan-scan feature.

8 years agoavio: deprecate url_fileno
Anton Khirnov [Thu, 17 Mar 2011 13:03:31 +0000 (14:03 +0100)]
avio: deprecate url_fileno

It's an evil hack that assumes an AVIOContext is always based on top of
an URLContext.
It's also not used anywhere.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agormenc: replace avio_seek(0) with avio_tell()
Anton Khirnov [Thu, 17 Mar 2011 06:41:19 +0000 (07:41 +0100)]
rmenc: replace avio_seek(0) with avio_tell()

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavf: replace some more avio_seek(SEEK_CUR) with avio_skip
Anton Khirnov [Thu, 17 Mar 2011 06:35:18 +0000 (07:35 +0100)]
lavf: replace some more avio_seek(SEEK_CUR) with avio_skip

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoffv1: allocate correct size for sample buffer
Mans Rullgard [Sun, 20 Mar 2011 22:04:47 +0000 (22:04 +0000)]
ffv1: allocate correct size for sample buffer

This fixes a typo in the size calculation for the sample buffer
introduced in cbabccc367424.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoDo no modify terminal parameters using termios.h
Panagiotis H.M. Issaris [Thu, 10 Mar 2011 15:07:52 +0000 (16:07 +0100)]
Do no modify terminal parameters using termios.h

Remove usage of tcgetattr and tcsetattr to modify terminal
parameters, and rely on ctrl-c to stop instead of pressing 'q'.
On systems with conio.h, keep the old behavior.

Changing the terminal settings causes problems if multiple instances
are running asynchronously on the same terminal, such as during a
parallel FATE run, or if the process crashes before restoring the
terminal.  In both cases, the terminal state is messed up requiring
a manual reset.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoMove ff_dct_init_mmx declaration to dct.h
Mans Rullgard [Sun, 20 Mar 2011 19:49:10 +0000 (19:49 +0000)]
Move ff_dct_init_mmx declaration to dct.h

This was missed in 0aded94.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agodoc: add details to the documentation for ffmpeg -map
Mike Scheutzow [Sun, 20 Mar 2011 07:01:41 +0000 (08:01 +0100)]
doc: add details to the documentation for ffmpeg -map

Patch by Mike Sheutzow with some additions and changes by Stefano.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoffmpeg: modify help text for the map option
Stefano Sabatini [Sun, 20 Mar 2011 07:01:40 +0000 (08:01 +0100)]
ffmpeg: modify help text for the map option

Change "file:stream[:syncfile:syncstream]" to
"file.stream[:syncfile.syncstream]", the latter syntax is more
consistent with the stream identifier form printed by
av_dump_format(), and more readable. Both syntaxes are currently
accepted by the opt_map() code.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agodct: remove superflous #include
Mans Rullgard [Sun, 20 Mar 2011 02:14:52 +0000 (02:14 +0000)]
dct: remove superflous #include

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoMove dct and rdft definitions to separate files
Mans Rullgard [Sun, 20 Mar 2011 02:14:25 +0000 (02:14 +0000)]
Move dct and rdft definitions to separate files

This leaves fft.h with only the core FFT and MDCT definitions
thus making it more managable.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoMove sine windows to a separate file
Mans Rullgard [Sat, 19 Mar 2011 23:44:00 +0000 (23:44 +0000)]
Move sine windows to a separate file

These windows do not really belong in fft/mdct files and were
easily confused with the similarly named tables used by rdft.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoMove ff_kbd_window_init() to a separate file
Mans Rullgard [Sat, 19 Mar 2011 17:19:04 +0000 (17:19 +0000)]
Move ff_kbd_window_init() to a separate file

This function is not tightly coupled to mdct, and it's in the way
of making a fixed-point mdct implementation.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agofft: remove inline wrappers for function pointers
Mans Rullgard [Sat, 19 Mar 2011 15:14:17 +0000 (15:14 +0000)]
fft: remove inline wrappers for function pointers

This removes the rather pointless wrappers (one not even inline)
for calling the fft_calc and related function pointers.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoconfigure: use dlltools instead of lib.exe
Luca Barbato [Thu, 17 Mar 2011 01:54:12 +0000 (02:54 +0100)]
configure: use dlltools instead of lib.exe

This way building ffmpeg on mingw won't require windows specific tools

8 years agoconfigure: check for SDL_Linked_Version instead of SDL_Init
Luca Barbato [Sat, 19 Mar 2011 14:45:48 +0000 (15:45 +0100)]
configure: check for SDL_Linked_Version instead of SDL_Init

This avoids the main/SDL_main declaration clash caused by SDL on
Windows and other platforms.

8 years agoRemove Sonic experimental audio codec
Mans Rullgard [Mon, 28 Feb 2011 18:06:58 +0000 (18:06 +0000)]
Remove Sonic experimental audio codec

Since initially committed in 2004, this codec has only been touched
for maintenanance.  Functionally, it contains no novel ideas and
its intended audience is better served by existing mature codecs.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agofate: remove stale fate-update.sh script
Mans Rullgard [Thu, 17 Mar 2011 17:05:11 +0000 (17:05 +0000)]
fate: remove stale fate-update.sh script

This script was used to import Mike's old fate database and
is no longer needed.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoReplace FFmpeg with Libav in licence headers
Mans Rullgard [Fri, 18 Mar 2011 17:35:10 +0000 (17:35 +0000)]
Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoget rid of the last svn mentions
Janne Grunau [Wed, 16 Mar 2011 20:53:58 +0000 (21:53 +0100)]
get rid of the last svn mentions

8 years agoconfigure: use -r option for pr when listing enabled config options.
Konstantin Pavlov [Thu, 17 Mar 2011 10:11:14 +0000 (10:11 +0000)]
configure: use -r option for pr when listing enabled config options.

This fixes ugliness when configure outputs its (empty) results on HPUX
(maybe some other UNIXes too):

Enabled indevs:
pr:  -- empty file

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoaacenc: 10l, missed a reference when refactoring the psymodel.
Nathan Caldwell [Fri, 18 Mar 2011 01:33:05 +0000 (19:33 -0600)]
aacenc: 10l, missed a reference when refactoring the psymodel.

8 years agoac3enc: add float_to_fixed24() with x86-optimized versions to AC3DSPContext
Justin Ruggles [Wed, 16 Mar 2011 02:29:04 +0000 (22:29 -0400)]
ac3enc: add float_to_fixed24() with x86-optimized versions to AC3DSPContext
and use in scale_coefficients() for the floating-point AC-3 encoder.

8 years agoasf: update seek test reference
Mans Rullgard [Thu, 17 Mar 2011 19:43:57 +0000 (19:43 +0000)]
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
will land within the file and some beyond the end, thus returning
a different set of packets.

Signed-off-by: Mans Rullgard <mans@mansr.com>