]> git.sesse.net Git - ffmpeg/log
ffmpeg
13 years agoapplehttp: Handle AES-128 encrypted streams
Martin Storsjö [Sun, 23 Jan 2011 21:42:18 +0000 (23:42 +0200)]
applehttp: Handle AES-128 encrypted streams

This should hopefully fix roundup issue 2586.

This commit only implements it in the demuxer, not in the
protocol handler. If desired, some of the code could be
refactored to be shared by both implementations.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoAdd a protocol handler for AES CBC decryption with PKCS7 padding
Martin Storsjö [Sat, 22 Jan 2011 23:31:41 +0000 (01:31 +0200)]
Add a protocol handler for AES CBC decryption with PKCS7 padding

This can later be extended to support other AES bit sizes,
encryption, other crypto algorithms, reading the key from a URL, etc.

In order to use it, the key and initialization vector has to be
passed via AVOptions. Since such options can't be passed to
protocols from the command line, the protocol is currently
only for libavformat internal use.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agodoc: Mention that DragonFly BSD requires __BSD_VISIBLE set
Martin Storsjö [Thu, 21 Apr 2011 21:45:06 +0000 (00:45 +0300)]
doc: Mention that DragonFly BSD requires __BSD_VISIBLE set

Setting this should fix the FATE build failure on DragonFly BSD,
since inet_aton only is visible if __BSD_VISIBLE is set.

Alternatively, a line defining __BSD_VISIBLE=1 could be
added at the top of os_support.c. For FreeBSD, similar lines
are required in libavdevice/bktr.c and libavdevice/oss_audio.c, too.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoUse av_log_ask_for_sample() to request samples from users.
Diego Biurrun [Fri, 22 Apr 2011 17:41:59 +0000 (19:41 +0200)]
Use av_log_ask_for_sample() to request samples from users.

13 years agoMake av_log_ask_for_sample() accept a variable number of arguments.
Diego Biurrun [Fri, 22 Apr 2011 17:30:25 +0000 (19:30 +0200)]
Make av_log_ask_for_sample() accept a variable number of arguments.

13 years agovqavideo: We no longer need to ask for version 1 samples.
Diego Biurrun [Fri, 22 Apr 2011 17:46:54 +0000 (19:46 +0200)]
vqavideo: We no longer need to ask for version 1 samples.

13 years agoaacdec: indentation cosmetics
Young Han Lee [Fri, 22 Apr 2011 12:39:56 +0000 (21:39 +0900)]
aacdec: indentation cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoAPIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition.
Ronald S. Bultje [Thu, 21 Apr 2011 23:50:19 +0000 (19:50 -0400)]
APIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition.

13 years agoIntroduce slice threads flag.
Ronald S. Bultje [Wed, 20 Apr 2011 18:14:42 +0000 (14:14 -0400)]
Introduce slice threads flag.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoFATE: allow forcing thread-type when doing threaded fate runs.
Ronald S. Bultje [Wed, 20 Apr 2011 17:12:38 +0000 (13:12 -0400)]
FATE: allow forcing thread-type when doing threaded fate runs.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoUse av_log_ask_for_sample() where appropriate.
Diego Biurrun [Thu, 21 Apr 2011 17:38:49 +0000 (19:38 +0200)]
Use av_log_ask_for_sample() where appropriate.

13 years agoerror: sort, pack, and align error code and string definitions
Stefano Sabatini [Thu, 21 Apr 2011 11:36:12 +0000 (13:36 +0200)]
error: sort, pack, and align error code and string definitions

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoThe stabilization period after version bumps should be one month, not one week.
Diego Biurrun [Thu, 21 Apr 2011 13:56:55 +0000 (15:56 +0200)]
The stabilization period after version bumps should be one month, not one week.

13 years agoapplehttp: Expose the stream bitrate via metadata
Martin Storsjö [Wed, 20 Apr 2011 07:10:10 +0000 (10:10 +0300)]
applehttp: Expose the stream bitrate via metadata

This helps callers to intelligently switch between bitrate
variants.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agodoc: Add some initial docs on the applehttp demuxer
Martin Storsjö [Wed, 20 Apr 2011 20:04:31 +0000 (23:04 +0300)]
doc: Add some initial docs on the applehttp demuxer

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoProvide a fallback version of the libm function trunc
Martin Storsjö [Thu, 21 Apr 2011 11:02:38 +0000 (13:02 +0200)]
Provide a fallback version of the libm function trunc

This fixes compilation on DOS.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibavdevice: Define _XOPEN_SOURCE for usleep
Martin Storsjö [Thu, 21 Apr 2011 10:49:21 +0000 (13:49 +0300)]
libavdevice: Define _XOPEN_SOURCE for usleep

This hopefully fixes build failures on Dragonfly BSD.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolavc: provide deprecated avcodec_thread_init until next major version
Anton Khirnov [Wed, 20 Apr 2011 15:21:39 +0000 (17:21 +0200)]
lavc: provide deprecated avcodec_thread_init until next major version

It was deprecated only recently.

13 years agolavc: provide the opt.h header until the next bump
Anton Khirnov [Wed, 20 Apr 2011 15:09:45 +0000 (17:09 +0200)]
lavc: provide the opt.h header until the next bump

AVOptions were moved to libavutil only recently.

13 years agoerror: change AVERROR_EOF value
Anton Khirnov [Wed, 20 Apr 2011 05:14:50 +0000 (07:14 +0200)]
error: change AVERROR_EOF value

The current value is masking the POSIX error code EPIPE, which has a
different semantics.

This breaks API.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoerror: remove AVERROR_NUMEXPECTED
Stefano Sabatini [Sun, 10 Apr 2011 22:29:30 +0000 (00:29 +0200)]
error: remove AVERROR_NUMEXPECTED

AVERROR_NUMEXPECTED is used only in the image muxer and demuxer, and
has a too much specific meaning, which is better explained through a
log message. Thus it can be replaced by AVERROR(EINVAL).

This breaks API.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoerror: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c
Stefano Sabatini [Sun, 10 Apr 2011 22:52:04 +0000 (00:52 +0200)]
error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c

The new error code is better than AVERROR(ENOENT), which has a
completely different semantics ("No such file or directory").

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoMakefile: Include dependencies for test tools, too
Martin Storsjö [Wed, 20 Apr 2011 18:22:08 +0000 (21:22 +0300)]
Makefile: Include dependencies for test tools, too

This makes seek_test to be rebuilt when its dependencies
has changed. The changes to the dependencies didn't usually matter
in practice, but the introduction of side data in AVPacket required
a recompilation.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoRemove a version check in av_log made unnecessary by the big bump.
Diego Biurrun [Wed, 20 Apr 2011 15:18:27 +0000 (17:18 +0200)]
Remove a version check in av_log made unnecessary by the big bump.

13 years agoupdate last major version increase dates in APIchanges
Justin Ruggles [Tue, 19 Apr 2011 23:37:29 +0000 (19:37 -0400)]
update last major version increase dates in APIchanges

13 years agoReduce picture size for yadif.
Michael Niedermayer [Wed, 23 Mar 2011 04:31:01 +0000 (04:31 +0000)]
Reduce picture size for yadif.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agooggdec: use av_freep() instead of av_free()
Michael Niedermayer [Tue, 12 Apr 2011 04:22:31 +0000 (04:22 +0000)]
oggdec: use av_freep() instead of av_free()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoavio: Fix sanity checks in ffurl_read*
Martin Storsjö [Wed, 20 Apr 2011 14:09:46 +0000 (17:09 +0300)]
avio: Fix sanity checks in ffurl_read*

This fixes e.g. reading data over HTTP, where the underlying
socket is set to read/write.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolibavformat: Free AVFormatContext->streams
Martin Storsjö [Wed, 20 Apr 2011 09:03:55 +0000 (12:03 +0300)]
libavformat: Free AVFormatContext->streams

After switching this from a statically allocated array to a
dynamically allocated one in the major bump, this needs explicit
freeing.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibavformat: Make protocols pass URLContext as log context where available
Martin Storsjö [Wed, 20 Apr 2011 09:40:29 +0000 (11:40 +0200)]
libavformat: Make protocols pass URLContext as log context where available

Since the libavformat major bump, URLContext contains an AVClass,
making it a usable log context.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoasf: remove commented out code in asf_read_seek
Vladimir Pantelic [Wed, 20 Apr 2011 10:31:10 +0000 (12:31 +0200)]
asf: remove commented out code in asf_read_seek

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agolibpostproc: Remove crufty code disabled by the big bump.
Diego Biurrun [Tue, 19 Apr 2011 19:53:48 +0000 (21:53 +0200)]
libpostproc: Remove crufty code disabled by the big bump.

13 years agoReflect 0.7_beta1 release in the Changelog
Reinhard Tartler [Tue, 19 Apr 2011 17:48:44 +0000 (19:48 +0200)]
Reflect 0.7_beta1 release in the Changelog

13 years agosws: remove disabled cruft.
Anton Khirnov [Tue, 19 Apr 2011 19:25:10 +0000 (21:25 +0200)]
sws: remove disabled cruft.

13 years agolavu: remove disabled ff_random_get_seed cruft.
Anton Khirnov [Tue, 19 Apr 2011 19:21:44 +0000 (21:21 +0200)]
lavu: remove disabled ff_random_get_seed cruft.

13 years agolavu: remove disabled sha1 cruft.
Anton Khirnov [Tue, 19 Apr 2011 19:16:35 +0000 (21:16 +0200)]
lavu: remove disabled sha1 cruft.

13 years agoIn avcodec_open(), set return code to an error value only when an error occurs
Justin Ruggles [Sun, 17 Apr 2011 20:57:55 +0000 (16:57 -0400)]
In avcodec_open(), set return code to an error value only when an error occurs
instead of unconditionally at the start of the function.

This fixes a bug where a successful call to ff_thread_init() masks errors that
occur after that point in the function.  It also makes future bugs like this
less likely since the error code is now set near to the point in the code
where the error is found.

13 years agolavc: remove reference to opt.h from Makefile.
Anton Khirnov [Tue, 19 Apr 2011 17:50:23 +0000 (19:50 +0200)]
lavc: remove reference to opt.h from Makefile.

Fixes make install after 3453a231a6cebe5989c213be0f9fd6c71ec5ea23.

13 years agoprefer avio_check() over url_exist()
Stefano Sabatini [Fri, 8 Apr 2011 23:32:37 +0000 (01:32 +0200)]
prefer avio_check() over url_exist()

The problem with url_exist() is that it tries to open a resource in
RDONLY mode. If the file is a FIFO and there is already a reading
client, the open() call will hang.

By using avio_check() with access mode of 0, the second reading
process will check if the file exists without attempting to open it,
thus avoiding the lock.

Fix issue #1663.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoavio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
Stefano Sabatini [Fri, 15 Apr 2011 14:42:09 +0000 (16:42 +0200)]
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols

Make AVIO_FLAG_ access constants work as flags, and in particular fix
the behavior of functions (such as avio_check()) which expect them to
be flags rather than modes.

This breaks API.

13 years agolavu: remove misc disabled cruft
Anton Khirnov [Tue, 12 Apr 2011 19:17:26 +0000 (21:17 +0200)]
lavu: remove misc disabled cruft

13 years agolavu: remove FF_API_OLD_IMAGE_NAMES cruft
Anton Khirnov [Tue, 12 Apr 2011 19:11:15 +0000 (21:11 +0200)]
lavu: remove FF_API_OLD_IMAGE_NAMES cruft

13 years agolavu: remove FF_API_OLD_EVAL_NAMES cruft
Anton Khirnov [Tue, 12 Apr 2011 18:57:07 +0000 (20:57 +0200)]
lavu: remove FF_API_OLD_EVAL_NAMES cruft

13 years agolavc: remove misc disabled cruft.
Anton Khirnov [Tue, 12 Apr 2011 18:46:49 +0000 (20:46 +0200)]
lavc: remove misc disabled cruft.

13 years agolavc: remove the FF_API_INOFFICIAL cruft.
Anton Khirnov [Thu, 3 Feb 2011 14:00:50 +0000 (15:00 +0100)]
lavc: remove the FF_API_INOFFICIAL cruft.

13 years agolavc: remove the FF_API_SET_STRING_OLD cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:58:59 +0000 (14:58 +0100)]
lavc: remove the FF_API_SET_STRING_OLD cruft.

13 years agolavc: remove the FF_API_USE_LPC cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:51:50 +0000 (14:51 +0100)]
lavc: remove the FF_API_USE_LPC cruft.

13 years agolavc: remove the FF_API_SUBTITLE_OLD cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:50:06 +0000 (14:50 +0100)]
lavc: remove the FF_API_SUBTITLE_OLD cruft.

13 years agolavc: remove the FF_API_VIDEO_OLD cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:48:39 +0000 (14:48 +0100)]
lavc: remove the FF_API_VIDEO_OLD cruft.

13 years agolavc: remove the FF_API_AUDIO_OLD cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:48:00 +0000 (14:48 +0100)]
lavc: remove the FF_API_AUDIO_OLD cruft.

13 years agolavc: remove the FF_API_OPT_SHOW cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:45:22 +0000 (14:45 +0100)]
lavc: remove the FF_API_OPT_SHOW cruft.

13 years agolavc: remove the FF_API_MM_FLAGS cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:43:53 +0000 (14:43 +0100)]
lavc: remove the FF_API_MM_FLAGS cruft.

13 years agolavf: remove misc disabled cruft.
Anton Khirnov [Wed, 13 Apr 2011 06:01:49 +0000 (08:01 +0200)]
lavf: remove misc disabled cruft.

13 years agolavf: remove FF_API_INDEX_BUILT cruft
Anton Khirnov [Tue, 12 Apr 2011 18:10:10 +0000 (20:10 +0200)]
lavf: remove FF_API_INDEX_BUILT cruft

13 years agolavf: remove FF_API_URL_CLASS cruft.
Anton Khirnov [Thu, 3 Feb 2011 11:53:28 +0000 (12:53 +0100)]
lavf: remove FF_API_URL_CLASS cruft.

13 years agolavf: remove FF_API_SYMVER cruft
Anton Khirnov [Thu, 3 Feb 2011 11:49:12 +0000 (12:49 +0100)]
lavf: remove FF_API_SYMVER cruft

13 years agolavf: remove FF_API_FIRST_FORMAT cruft
Anton Khirnov [Thu, 3 Feb 2011 11:47:18 +0000 (12:47 +0100)]
lavf: remove FF_API_FIRST_FORMAT cruft

13 years agolavf: remove FF_API_PARAMETERS_CODEC_ID cruft
Anton Khirnov [Thu, 3 Feb 2011 11:46:12 +0000 (12:46 +0100)]
lavf: remove FF_API_PARAMETERS_CODEC_ID cruft

13 years agolavf: remove FF_API_LAVF_UNUSED cruft
Anton Khirnov [Thu, 3 Feb 2011 11:45:30 +0000 (12:45 +0100)]
lavf: remove FF_API_LAVF_UNUSED cruft

13 years agolavf: remove FF_API_PARSE_FRAME_PARAM cruft
Anton Khirnov [Thu, 3 Feb 2011 11:44:04 +0000 (12:44 +0100)]
lavf: remove FF_API_PARSE_FRAME_PARAM cruft

13 years agolavf: remove FF_API_ALLOC_FORMAT_CONTEXT cruft
Anton Khirnov [Thu, 3 Feb 2011 11:42:38 +0000 (12:42 +0100)]
lavf: remove FF_API_ALLOC_FORMAT_CONTEXT cruft

13 years agolavf: remove FF_API_URL_SPLIT cruft
Anton Khirnov [Thu, 3 Feb 2011 11:40:25 +0000 (12:40 +0100)]
lavf: remove FF_API_URL_SPLIT cruft

13 years agolavf: remove FF_API_UDP_GET_FILE cruft
Anton Khirnov [Thu, 3 Feb 2011 11:39:11 +0000 (12:39 +0100)]
lavf: remove FF_API_UDP_GET_FILE cruft

13 years agolavf: remove FF_API_GUESS_FORMAT cruft
Anton Khirnov [Thu, 3 Feb 2011 11:38:05 +0000 (12:38 +0100)]
lavf: remove FF_API_GUESS_FORMAT cruft

13 years agolavf: remove FF_API_REGISTER_PROTOCOL cruft
Anton Khirnov [Thu, 3 Feb 2011 11:36:18 +0000 (12:36 +0100)]
lavf: remove FF_API_REGISTER_PROTOCOL cruft

13 years agolavf: remove FF_API_URL_RESETBUF cruft
Anton Khirnov [Thu, 3 Feb 2011 11:32:59 +0000 (12:32 +0100)]
lavf: remove FF_API_URL_RESETBUF cruft

13 years agolavf: remove FF_API_OLD_METADATA cruft
Anton Khirnov [Thu, 3 Feb 2011 11:30:16 +0000 (12:30 +0100)]
lavf: remove FF_API_OLD_METADATA cruft

13 years agolavf: remove FF_API_MAX_STREAMS cruft
Anton Khirnov [Thu, 3 Feb 2011 11:25:54 +0000 (12:25 +0100)]
lavf: remove FF_API_MAX_STREAMS cruft

13 years agodocument introduction of side data in APIchanges
Kostya [Mon, 18 Apr 2011 05:32:14 +0000 (05:32 +0000)]
document introduction of side data in APIchanges

this should've been written earlier, sorry

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agopcm: Add const to cast in ENCODE macro.
Diego Biurrun [Tue, 19 Apr 2011 06:47:59 +0000 (08:47 +0200)]
pcm: Add const to cast in ENCODE macro.

This fixes a lot of warnings of the sort:
libavcodec/pcm.c:105: warning: cast discards qualifiers from pointer target type

13 years agoRemove now obsolete references to _g-suffixed binaries.
Diego Biurrun [Mon, 18 Apr 2011 21:12:40 +0000 (23:12 +0200)]
Remove now obsolete references to _g-suffixed binaries.

Automatic stripping of binaries was removed in commit e0be794
and the _g binaries disappeared along with it.

13 years agolibvo-aacenc,libvo-amrwbenc}: fix api usage
Luca Barbato [Mon, 18 Apr 2011 20:12:50 +0000 (22:12 +0200)]
libvo-aacenc,libvo-amrwbenc}: fix api usage

Use the correct error codes and format identifier.

13 years agoBump major versions of all libraries.
Anton Khirnov [Thu, 3 Feb 2011 11:18:16 +0000 (12:18 +0100)]
Bump major versions of all libraries.

They've accumulated enough new APIs and corresponding deprecated cruft.

This breaks API and ABI.

13 years agoReplace mplayerhq.hu URLs by libav.org.
Diego Biurrun [Sun, 17 Apr 2011 18:13:59 +0000 (20:13 +0200)]
Replace mplayerhq.hu URLs by libav.org.

13 years agoasfdec: Remove dead code from asf_read_close().
Diego Biurrun [Sun, 17 Apr 2011 17:48:27 +0000 (19:48 +0200)]
asfdec: Remove dead code from asf_read_close().

13 years agoptx: Use av_log_ask_for_sample() where appropriate.
Diego Biurrun [Sun, 17 Apr 2011 21:42:10 +0000 (23:42 +0200)]
ptx: Use av_log_ask_for_sample() where appropriate.

13 years agoUpdate regtest checksums after revision 6001dad.
Diego Biurrun [Sun, 17 Apr 2011 20:18:00 +0000 (22:18 +0200)]
Update regtest checksums after revision 6001dad.

The string "FFmpeg" was replaced by "Libav" in metadata that
got encoded in file headers.

13 years agoReplace more FFmpeg references by Libav.
Diego Biurrun [Fri, 15 Apr 2011 20:30:26 +0000 (22:30 +0200)]
Replace more FFmpeg references by Libav.

13 years agoac3dec: fix processing of delta bit allocation information.
Justin Ruggles [Sun, 17 Apr 2011 16:26:47 +0000 (12:26 -0400)]
ac3dec: fix processing of delta bit allocation information.

The number of dba segments is the coded value + 1.
The coupling dba offset starts at the first coupling band, not at zero.

13 years agovc1: fix fate-vc1 after previous commit.
Ronald S. Bultje [Sat, 16 Apr 2011 19:29:05 +0000 (19:29 +0000)]
vc1: fix fate-vc1 after previous commit.

PROFILE_ADVANCED doesn't set res_fasttx, so make that a special case
in the condition that decides which IDCT to use (and whether to read
coefficients transposed or not).

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years agowmv3dec: fix playback of complex WMV3 files using simple_idct.
Ronald S. Bultje [Sat, 16 Apr 2011 19:07:14 +0000 (15:07 -0400)]
wmv3dec: fix playback of complex WMV3 files using simple_idct.

IDCT coefficients are read transposed, but simple_idct does not expect
this. Therefore, only do tranposed coefficient reading if we're not
using simple_idct.

Fixes http://forum.videolan.org/viewtopic.php?f=14&t=89651

13 years agoReplace references to ffmpeg-devel with libav-devel; fix roundup URL.
Diego Biurrun [Fri, 15 Apr 2011 15:49:36 +0000 (17:49 +0200)]
Replace references to ffmpeg-devel with libav-devel; fix roundup URL.

13 years agomake av_dup_packet() more cautious on allocation failures
Kostya Shishkov [Wed, 13 Apr 2011 15:36:02 +0000 (17:36 +0200)]
make av_dup_packet() more cautious on allocation failures

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agomake containers pass palette change in AVPacket
Kostya Shishkov [Sat, 9 Apr 2011 13:49:51 +0000 (15:49 +0200)]
make containers pass palette change in AVPacket

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agointroduce side information for AVPacket
Kostya Shishkov [Sat, 9 Apr 2011 13:31:39 +0000 (15:31 +0200)]
introduce side information for AVPacket

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agoxwma: Fix wrong printf format expression.
Diego Biurrun [Fri, 15 Apr 2011 11:28:04 +0000 (13:28 +0200)]
xwma: Fix wrong printf format expression.

Also add inttypes.h #include for PRId64 macros.

This fixes the following warnings:
libavformat/xwma.c:147: warning: too many arguments for format
libavformat/xwma.c:151: warning: too many arguments for format

13 years agoxwma demuxer: typos
Max Horn [Fri, 15 Apr 2011 07:43:15 +0000 (09:43 +0200)]
xwma demuxer: typos

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agooggdec: simplify audio chained ogg streams support
Clément Bœsch [Sun, 10 Apr 2011 07:26:43 +0000 (09:26 +0200)]
oggdec: simplify audio chained ogg streams support

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agoswscale: fix "ISO C90 forbids mixed declarations and code" warning
Janne Grunau [Fri, 15 Apr 2011 07:12:34 +0000 (09:12 +0200)]
swscale: fix "ISO C90 forbids mixed declarations and code" warning

only hit with --enable-runtime-cpudetect

13 years agoswscale: fix compilation with --enable-runtime-cpudetect
Janne Grunau [Fri, 15 Apr 2011 00:09:44 +0000 (02:09 +0200)]
swscale: fix compilation with --enable-runtime-cpudetect

13 years agoswscale: correct include path to fix ppc altivec build
Janne Grunau [Thu, 14 Apr 2011 22:31:04 +0000 (00:31 +0200)]
swscale: correct include path to fix ppc altivec build

13 years agoswscale: simplify rgb2rgb templating
Luca Barbato [Thu, 14 Apr 2011 20:03:45 +0000 (22:03 +0200)]
swscale: simplify rgb2rgb templating

MMX is always built. Drop the ifdefs

13 years agoswscale: simplify initialization code
Josh Allmann [Wed, 13 Apr 2011 18:57:32 +0000 (20:57 +0200)]
swscale: simplify initialization code

Simplify the fallthrough case when no accelerated functions
can be initialized.

13 years agoswscale: further cleanup swscale.c
Josh Allmann [Wed, 13 Apr 2011 18:57:31 +0000 (20:57 +0200)]
swscale: further cleanup swscale.c

Move x86-specific constants out of swscale.c

13 years agoswscale: partially move the arch specific code left
Luca Barbato [Wed, 13 Apr 2011 18:57:30 +0000 (20:57 +0200)]
swscale: partially move the arch specific code left

PPC and x86 code is split off from swscale_template.c. Lots of code is
still duplicated and should be removed later.

Again uniformize the init system to be more similar to the dsputil one.

Unset h*scale_fast in the x86 init in order to make the output
consistent with the previous status. Thanks to Josh for spotting it.

13 years agoswscale: move away x86 specific code from rgb2rgb
Luca Barbato [Wed, 13 Apr 2011 18:57:29 +0000 (20:57 +0200)]
swscale: move away x86 specific code from rgb2rgb

Keep only the plain C code in the main rgb2rgb.c and move the x86
specific optimizations to x86/rgb2rgb.c
Change the initialization pattern a little so some of it can be
factorized to behave more like dsputils.

13 years agoavutil: make aes and sha api public
Alexis Ballier [Thu, 7 Apr 2011 13:19:23 +0000 (10:19 -0300)]
avutil: make aes and sha api public

The functions are already av_ prefixed and sha1 header is already provided.
Install libavutil/{aes,sha}.h

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agohandle malloc failures in ff_get_wav_header
Max Horn [Tue, 12 Apr 2011 15:44:20 +0000 (17:44 +0200)]
handle malloc failures in ff_get_wav_header

ff_get_wav_header is reading data from a WAVE file and then uses it
(without validation) to malloc a buffer. It then proceeded to read
data into the buffer, without verifying that the allocation succeeded.

To address this, change ff_get_wav_header to return an error if
allocation failed, and adapted all calling code to handle that error.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agoadd xWMA demuxer
Max Horn [Tue, 12 Apr 2011 11:59:39 +0000 (13:59 +0200)]
add xWMA demuxer

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agompegts: force the default timebase
Rudolf Polzer [Thu, 14 Apr 2011 09:12:57 +0000 (11:12 +0200)]
mpegts: force the default timebase

The mpegts muxer does not set the stream time base using
av_set_pts_info, but expects it to have the default value of 1/90000.
If the calling code changes stream pts before writing the header,
other muxers override the time base at that point (like mpegenc.c).