]> git.sesse.net Git - ffmpeg/log
ffmpeg
13 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>
13 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.

13 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>
13 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>
13 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()

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

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

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

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

13 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

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

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

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

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

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

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

13 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).

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

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

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

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

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

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

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

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

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

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

13 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>
13 years agonutenc: fix a memleak
Anton Khirnov [Thu, 17 Mar 2011 16:00:21 +0000 (17:00 +0100)]
nutenc: fix a memleak

This fixes a minor memory leak introduced in 073f8b1.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoasfdec: subtract the preroll value and thus output 0 based timestamps
Vladimir Pantelic [Thu, 17 Mar 2011 13:56:14 +0000 (14:56 +0100)]
asfdec: subtract the preroll value and thus output 0 based timestamps

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agolavf: Make make_absolute_url a lavf internal function
Martin Storsjö [Thu, 17 Mar 2011 10:24:23 +0000 (12:24 +0200)]
lavf: Make make_absolute_url a lavf internal function

This is shared by both applehttp demuxer and protocol.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agoAdd missed APIchanges and changelog entries
Martin Storsjö [Thu, 17 Mar 2011 10:23:52 +0000 (12:23 +0200)]
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
applied before the jv demuxer, they all can be considered added
in this minor version.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agoapplehttp: Fix a typo in a comment
Martin Storsjö [Thu, 17 Mar 2011 10:24:08 +0000 (10:24 +0000)]
applehttp: Fix a typo in a comment

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agolavf: make av_interleave_packet() return meaningful error codes
Stefano Sabatini [Tue, 15 Mar 2011 12:03:03 +0000 (13:03 +0100)]
lavf: make av_interleave_packet() return meaningful error codes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c5dcb3d493a6bb73efeb8bfae24f5cc31908201f)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agolavf: enable av_dlog message in av_interleaved_write_frame()
Stefano Sabatini [Tue, 15 Mar 2011 12:12:15 +0000 (13:12 +0100)]
lavf: enable av_dlog message in av_interleaved_write_frame()

Help debugging timestamp issues.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d541c8b468c12892fe7b7e655e1ed45e11e2166d)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agolavf: enable av_dlog() in compute_pkt_fields2()
Stefano Sabatini [Tue, 15 Mar 2011 12:11:57 +0000 (13:11 +0100)]
lavf: enable av_dlog() in compute_pkt_fields2()

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 77f21ce4641b53f3277ba30ca3d009b6250fd9ea)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agoaacenc: cosmetics, indentation, and comment clarification
Nathan Caldwell [Thu, 17 Mar 2011 03:35:39 +0000 (23:35 -0400)]
aacenc: cosmetics, indentation, and comment clarification

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

13 years agoaacenc: Refactor the parts of the AAC psymodel.
Nathan Caldwell [Thu, 17 Mar 2011 03:34:12 +0000 (23:34 -0400)]
aacenc: Refactor the parts of the AAC psymodel.

3GPP:
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.

LAME:
Use a loop instead of an if chain in LAME windowing.

13 years agoaaccoder: Change FFMAX for allzero flag to OR bit operation
Young Han Lee [Fri, 11 Mar 2011 02:39:24 +0000 (11:39 +0900)]
aaccoder: Change FFMAX for allzero flag to OR bit operation

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavio: rename put_flush_packet -> avio_flush
Anton Khirnov [Mon, 14 Mar 2011 19:39:06 +0000 (20:39 +0100)]
avio: rename put_flush_packet -> avio_flush

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavio: deprecate url_close_buf
Anton Khirnov [Mon, 14 Mar 2011 19:39:05 +0000 (20:39 +0100)]
avio: deprecate url_close_buf

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

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavio: deprecate url_open_buf
Anton Khirnov [Mon, 14 Mar 2011 19:39:04 +0000 (20:39 +0100)]
avio: deprecate url_open_buf

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

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavio: always compile avio_printf, rather than on CONFIG_MUXERS
Anton Khirnov [Mon, 14 Mar 2011 19:39:03 +0000 (20:39 +0100)]
avio: always compile avio_printf, rather than on CONFIG_MUXERS

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavio: avio_ prefix for url_fprintf
Anton Khirnov [Mon, 14 Mar 2011 19:39:02 +0000 (20:39 +0100)]
avio: avio_ prefix for url_fprintf

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavio: change avio_tell/skip from macros to inline functions
Anton Khirnov [Mon, 14 Mar 2011 19:39:01 +0000 (20:39 +0100)]
avio: change avio_tell/skip from macros to inline functions

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

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agolavf: move ff_get_v from avio.h to avio_internal.h
Anton Khirnov [Mon, 14 Mar 2011 19:38:57 +0000 (20:38 +0100)]
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 <rsbultje@gmail.com>
13 years agonutenc: mux chapters.
Anton Khirnov [Wed, 16 Mar 2011 05:42:43 +0000 (06:42 +0100)]
nutenc: mux chapters.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agodoc: update applehttp documentation
Luca Barbato [Sun, 13 Mar 2011 18:50:37 +0000 (19:50 +0100)]
doc: update applehttp documentation

Integrate more comments from Stefano.

13 years agolavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense
Anton Khirnov [Tue, 15 Mar 2011 08:14:38 +0000 (09:14 +0100)]
lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoRemove occurrences of my old email address
Ramiro Polla [Wed, 16 Mar 2011 18:28:43 +0000 (15:28 -0300)]
Remove occurrences of my old email address

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: add bswap16_buf()
Mans Rullgard [Tue, 20 Apr 2010 23:09:00 +0000 (00:09 +0100)]
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
architectures.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodarwin: use -read_only_relocs flag only on 32-bit x86
Sean McGovern [Wed, 16 Mar 2011 01:01:17 +0000 (01:01 +0000)]
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 <mans@mansr.com>
13 years agoreplace FFmpeg with Libav in doc/
Janne Grunau [Mon, 14 Mar 2011 21:59:19 +0000 (22:59 +0100)]
replace FFmpeg with Libav in doc/

unless it stands for ffmpeg the program or is historic

13 years agouse LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*
Janne Grunau [Mon, 14 Mar 2011 21:27:40 +0000 (22:27 +0100)]
use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*

13 years agoreplace FFMPEG with LIBAV in FFMPEG_CONFIGURATION
Janne Grunau [Mon, 14 Mar 2011 21:23:10 +0000 (22:23 +0100)]
replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION

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

13 years agopartially rename FFmpeg to Libav
Janne Grunau [Mon, 14 Mar 2011 20:39:58 +0000 (21:39 +0100)]
partially rename FFmpeg to Libav

update mailing list references and irc channels in configure

13 years agomp3enc: remove mp3_write_packet(), use ff_raw_write_packet() instead
Anton Khirnov [Wed, 16 Mar 2011 13:31:32 +0000 (14:31 +0100)]
mp3enc: remove mp3_write_packet(), use ff_raw_write_packet() instead

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

13 years agoDo not attempt to decode APE file with no frames
Kostya [Tue, 15 Mar 2011 09:19:43 +0000 (09:19 +0000)]
Do not attempt to decode APE file with no frames

This fixes invalid reads/writes with this sample:
http://packetstorm.linuxsecurity.com/1103-exploits/vlc105-dos.txt

13 years agojvdec: don't use deprecated url_feof()
Anton Khirnov [Wed, 16 Mar 2011 04:46:22 +0000 (04:46 +0000)]
jvdec: don't use deprecated url_feof()

13 years agomathops: fix MULL() when the compiler does not inline the function.
Justin Ruggles [Wed, 16 Mar 2011 00:38:23 +0000 (20:38 -0400)]
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.

13 years agoid3v2: merge TYER/TDAT/TIME to date tag
Anton Khirnov [Tue, 15 Mar 2011 09:14:16 +0000 (10:14 +0100)]
id3v2: merge TYER/TDAT/TIME to date tag

13 years agomathops: change "g" constraint to "rm" in x86-32 version of MUL64().
Justin Ruggles [Tue, 15 Mar 2011 17:35:05 +0000 (13:35 -0400)]
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.

13 years agomathops: convert MULL/MULH/MUL64 to inline functions rather than macros.
Justin Ruggles [Tue, 15 Mar 2011 17:30:24 +0000 (13:30 -0400)]
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.

13 years agoUse AVERROR_EXIT with url_interrupt_cb.
Nicolas George [Sat, 12 Mar 2011 23:42:27 +0000 (00:42 +0100)]
Use AVERROR_EXIT with url_interrupt_cb.

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

This fixes roundup issues 2657 and 2659 (ffplay not exiting for streamed
content).

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoAdd AVERROR_EXIT.
Nicolas George [Sat, 12 Mar 2011 23:42:26 +0000 (00:42 +0100)]
Add AVERROR_EXIT.

This is different from AVERROR(EINTR) because calls that fail with EINTR
should usually be restarted.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavio: deprecate url_ferror
Anton Khirnov [Mon, 14 Mar 2011 19:38:55 +0000 (20:38 +0100)]
avio: deprecate url_ferror

AVIOContext.error should be used directly instead.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agolavf/utils: dont't explicitly check AVIOContext.error
Anton Khirnov [Mon, 14 Mar 2011 19:38:54 +0000 (20:38 +0100)]
lavf/utils: dont't explicitly check AVIOContext.error

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

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoh264_mp4toannexb_bsf: Fix spurious warning when stream has SPS and PPS units.
Philip Langdale [Tue, 15 Mar 2011 05:14:22 +0000 (22:14 -0700)]
h264_mp4toannexb_bsf: Fix spurious warning when stream has SPS and PPS units.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoDelete MAINTAINERS file
Mans Rullgard [Mon, 14 Mar 2011 17:15:34 +0000 (17:15 +0000)]
Delete MAINTAINERS file

This file is a bad idea and also badly outdated.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoac3enc: add SIMD-optimized shifting functions for use with the fixed-point AC3 encoder.
Justin Ruggles [Fri, 11 Mar 2011 21:45:01 +0000 (16:45 -0500)]
ac3enc: add SIMD-optimized shifting functions for use with the fixed-point AC3 encoder.

13 years agoac3enc: do not right-shift fixed-point coefficients in the final MDCT stage.
Justin [Fri, 11 Mar 2011 18:03:26 +0000 (13:03 -0500)]
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
before determining the rematrixing strategy. Also, the rematrixing strategy
calculation must use 64-bit math to prevent overflow due to the higher
precision coefficients.