]> git.sesse.net Git - ffmpeg/log
ffmpeg
13 years agolavc: remove FF_API_RATE_EMU cruft
Anton Khirnov [Tue, 12 Apr 2011 18:53:21 +0000 (20:53 +0200)]
lavc: remove FF_API_RATE_EMU cruft

13 years agolavc: remove FF_API_HURRY_UP cruft
Anton Khirnov [Tue, 12 Apr 2011 18:51:40 +0000 (20:51 +0200)]
lavc: remove FF_API_HURRY_UP cruft

13 years agopad: make the filter parametric
Stefano Sabatini [Sun, 17 Apr 2011 15:19:05 +0000 (17:19 +0200)]
pad: make the filter parametric

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_movie: add key_frame and pict_type.
royger [Mon, 18 Apr 2011 15:50:16 +0000 (17:50 +0200)]
vsrc_movie: add key_frame and pict_type.

Signed-off-by: Roger Pau Monné <roger.pau@entel.upc.edu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_movie: fix leak in request_frame()
Stefano Sabatini [Mon, 18 Apr 2011 17:21:25 +0000 (19:21 +0200)]
vsrc_movie: fix leak in request_frame()

Also set movie->picref to NULL, in order to avoid a crash in uninit()
when movie->picref is unreffed again and it was already freed.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavfi: add key_frame and pict_type to AVFilterBufferRefVideo.
Roger Pau Monné [Sat, 16 Apr 2011 08:09:15 +0000 (10:09 +0200)]
lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_buffer: add sample_aspect_ratio fields to arguments.
Michael Niedermayer [Mon, 31 Jan 2011 19:48:35 +0000 (20:48 +0100)]
vsrc_buffer: add sample_aspect_ratio fields to arguments.

This fixes aspect handling in ffmpeg.

This is based on a patch by Baptiste.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavfi: add fieldorder filter
Mark Himsley [Sun, 10 Apr 2011 17:18:03 +0000 (19:18 +0200)]
lavfi: add fieldorder filter

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoscale: make the filter parametric
Stefano Sabatini [Sun, 27 Mar 2011 20:58:08 +0000 (22:58 +0200)]
scale: make the filter parametric

Make the filter accept parametric expressions for the output video
size.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoyadif: support 16-bit
James Darnley [Wed, 24 Nov 2010 20:25:09 +0000 (21:25 +0100)]
yadif: support 16-bit

Fixes by Michael Niedermayer <michaelni@gmx.at>

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoyadif: support more than yuv420p.
James Darnley [Tue, 5 Apr 2011 00:45:10 +0000 (02:45 +0200)]
yadif: support more than yuv420p.

and correctly support grey8

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoyadif: Fix assert() failure
Michael Niedermayer [Sat, 2 Apr 2011 18:26:39 +0000 (20:26 +0200)]
yadif: Fix assert() failure

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agographparser: add a NULL check on the argument passed to strstr
Stefano Sabatini [Wed, 30 Mar 2011 19:30:31 +0000 (21:30 +0200)]
graphparser: add a NULL check on the argument passed to strstr

Fix crash in create_filter() which occurrs if a scale filter with no
args is provided.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agosetdar: prefer "sar" over "par" in log info message
Stefano Sabatini [Sat, 26 Mar 2011 14:49:07 +0000 (15:49 +0100)]
setdar: prefer "sar" over "par" in log info message

This is more consistent with the terminology adopted by the aspect
filter names.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agofade: fix draw_slice() check on fade->factor value
Mark Himsley [Fri, 18 Mar 2011 15:25:26 +0000 (15:25 +0000)]
fade: fix draw_slice() check on fade->factor value

draw_slice() checks that the fade factor is < 65536 and only
calculates the fade if so. But the fade factor is clipped in
end_frame() by av_clip_uint16() to 65535, so the fade is calculated
for every frame.  This patch alters the check so that it compares with
< 65535 (UINT16_MAX).

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agofade: make draw_slice() chroma check against planes 1 and 2
Mark Himsley [Fri, 18 Mar 2011 14:42:29 +0000 (14:42 +0000)]
fade: make draw_slice() chroma check against planes 1 and 2

draw_slice() checks that planes 0 and 1 of AVFilterBufferRef's data
are not NULL before manipulating planes 1 and 2. This patch makes the
check against planes 1 and 2. More senseful and possibly more robust.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agowin32: include the correct header in cmdutils.c
Luca Barbato [Mon, 25 Apr 2011 13:30:42 +0000 (15:30 +0200)]
win32: include the correct header in cmdutils.c

CommandLineToArgvW requires windows.h, include it directly

13 years agoac3: fix memleak in fixed-point encoder
Janne Grunau [Mon, 25 Apr 2011 16:56:40 +0000 (18:56 +0200)]
ac3: fix memleak in fixed-point encoder

caused by typo in mdct_end

13 years agoflashsv: Return more meaningful error values.
Diego Biurrun [Mon, 25 Apr 2011 14:01:58 +0000 (16:01 +0200)]
flashsv: Return more meaningful error values.

13 years agoflashsv: Employ explicit AVCodec struct initializers.
Diego Biurrun [Mon, 25 Apr 2011 00:22:46 +0000 (02:22 +0200)]
flashsv: Employ explicit AVCodec struct initializers.

13 years agoread AVI palette from the end of extradata
Kostya Shishkov [Sat, 23 Apr 2011 07:42:19 +0000 (09:42 +0200)]
read AVI palette from the end of extradata

Official AVI specification says that stream header in case of video contains
BITMAPINFO, which is equal to BITMAPINFOHEADER and optional palette. Currently
lavf AVI demuxer thinks otherwise which produces garbage on codecs that have
both palette and extradata (luckily, there are not so many such codecs).

An example of such file is:
http://samples.multimedia.cx/V-codecs/KMVC/baseball1.avi
(IIRC, MSS1 or MSS2 also had such situation but they are still not supported
by lavc).

As a side note, passing palette in extradata as it's been done previously is
not quite correct since proper _extra_ data is surplus bytes in
BITMAPINFOHEADER, not including palette.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agocosmetics: K&R coding style and more whitespace for Flash Screen Video
Diego Biurrun [Sun, 24 Apr 2011 12:47:54 +0000 (14:47 +0200)]
cosmetics: K&R coding style and more whitespace for Flash Screen Video

13 years agovorbisdec: Employ proper printf format specifiers for uint_fast32_t.
Diego Biurrun [Sun, 24 Apr 2011 17:49:39 +0000 (19:49 +0200)]
vorbisdec: Employ proper printf format specifiers for uint_fast32_t.

libavcodec/vorbisdec.c:543: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘uint_fast32_t’
libavcodec/vorbisdec.c:543: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘uint_fast32_t’

13 years agoapplehttp: Don't export variant_bitrate if it isn't known
Martin Storsjö [Sun, 24 Apr 2011 17:19:49 +0000 (20:19 +0300)]
applehttp: Don't export variant_bitrate if it isn't known

If there are no variants, the total bitrate of the single
stream isn't known, and exporting variant_bitrate = 0 does
look weird, since there really aren't any variants.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agocrypto: Use av_freep instead of av_free
Martin Storsjö [Sun, 24 Apr 2011 17:10:37 +0000 (20:10 +0300)]
crypto: Use av_freep instead of av_free

Using av_freep is generally good practice.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoconfigure: Add missing libm library dependencies to .pc files.
Reinhard Tartler [Sun, 24 Apr 2011 15:24:24 +0000 (17:24 +0200)]
configure: Add missing libm library dependencies to .pc files.

This unbreaks static compilation using pkg-config on systems in need of -lm.
Based on an mplayer2 patch by Uoti Urpala <uau@mplayer2.org>

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agooggdec: reindent after 8f3eebd6
Clément Bœsch [Sun, 24 Apr 2011 13:40:57 +0000 (15:40 +0200)]
oggdec: reindent after 8f3eebd6

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoconfigure: Add missing libavutil inter-library dependencies to .pc files.
Reinhard Tartler [Sun, 24 Apr 2011 09:39:15 +0000 (11:39 +0200)]
configure: Add missing libavutil inter-library dependencies to .pc files.

This unbreaks static compilation when using pkg-config.
Based on an mplayer2 patch by Uoti Urpala <uau@mplayer2.org>

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoHandle unicode file names on windows
Kirill Gavrilov [Wed, 20 Apr 2011 11:36:44 +0000 (14:36 +0300)]
Handle unicode file names on windows

All file names should be in UTF-8 within libavformat.

This is handled by mapping the open() function to an internal one
in os_support.h for windows.

fopen() could be overridden in the same way, but if that would be
used from ffmpeg.c, it would add a dependency on an ff prefixed
internal lavf function.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortp: Rename the open/close functions to alloc/free
Martin Storsjö [Wed, 20 Apr 2011 12:36:37 +0000 (15:36 +0300)]
rtp: Rename the open/close functions to alloc/free

This avoids clashes if we internally want to override the global
open function.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoLowercase all ff* program names.
Diego Biurrun [Sat, 23 Apr 2011 13:19:17 +0000 (15:19 +0200)]
Lowercase all ff* program names.

13 years agoRefer to ff* tools by their lowercase names.
Diego Biurrun [Sat, 23 Apr 2011 14:40:01 +0000 (16:40 +0200)]
Refer to ff* tools by their lowercase names.

13 years agoReplace more FFmpeg instances by Libav or ffmpeg.
Diego Biurrun [Sat, 23 Apr 2011 14:39:03 +0000 (16:39 +0200)]
Replace more FFmpeg instances by Libav or ffmpeg.

13 years agoReplace `` by $() syntax in shell scripts.
Diego Biurrun [Mon, 18 Apr 2011 22:16:24 +0000 (00:16 +0200)]
Replace `` by $() syntax in shell scripts.

$() is easier to nest and POSIX, which we require in other places.

13 years agopatcheck: Allow overiding grep program(s) through environment variables.
Brad [Mon, 28 Mar 2011 01:05:22 +0000 (21:05 -0400)]
patcheck: Allow overiding grep program(s) through environment variables.

patcheck hardcodes the binary names for grep/egrep. This makes overriding the
binary names a pain, e.g. when calling a GNU version of grep on BSD systems.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoRemove stray libavcore and _g binary references.
Diego Biurrun [Sat, 23 Apr 2011 12:14:22 +0000 (14:14 +0200)]
Remove stray libavcore and _g binary references.

13 years agovorbis: Rename decoder/encoder files to follow general file naming scheme.
Diego Biurrun [Sun, 17 Apr 2011 17:44:33 +0000 (19:44 +0200)]
vorbis: Rename decoder/encoder files to follow general file naming scheme.

13 years agoaacenc: Fix whitespace after last commit.
Nathan Caldwell [Tue, 5 Apr 2011 07:05:24 +0000 (01:05 -0600)]
aacenc: Fix whitespace after last commit.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agocook: Fix small typo in av_log_ask_for_sample message.
Diego Biurrun [Sat, 23 Apr 2011 00:02:42 +0000 (02:02 +0200)]
cook: Fix small typo in av_log_ask_for_sample message.

13 years agoaacenc: Finish 3GPP psymodel analysis for non mid/side cases.
Nathan Caldwell [Wed, 5 Jan 2011 08:32:16 +0000 (01:32 -0700)]
aacenc: Finish 3GPP psymodel analysis for non mid/side cases.

There is still are still a few sections missing relating to TNS (not present)
and mid/side (contains other bugs).

Overall this improves quality, and vastly improves rate-control.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoRemove RDFT dependency from AAC decoder.
Alex Converse [Thu, 21 Apr 2011 18:39:04 +0000 (18:39 +0000)]
Remove RDFT dependency from AAC decoder.

$subj

>From 557176d961c70604c2a96d81aff4bd6faa670d8a Mon Sep 17 00:00:00 2001
From: Alex Converse <aconverse@google.com>
Date: Thu, 21 Apr 2011 12:11:42 -0700
Subject: [PATCH] Remove RDFT dependency from AAC decoder.
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1"

This is a multi-part message in MIME format.
--------------1
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

It was used for an old implementation of the SBR filterbank.

./configure --disable-everything --disable-ffplay --enable-decoder=aac works.

13 years agoAdd some debug log messages to AAC extradata
Alex Converse [Wed, 20 Apr 2011 17:47:28 +0000 (17:47 +0000)]
Add some debug log messages to AAC extradata

On Wed, Apr 20, 2011 at 11:39 AM, Justin Ruggles
<justin.ruggles@gmail.com> wrote:
> On 04/20/2011 02:26 PM, Alex Converse wrote:
>
>> ---
>>  libavcodec/aacdec.c |   10 +++++++++-
>>  1 files changed, 9 insertions(+), 1 deletions(-)
>>
>>
>>
>> 0002-Add-some-Debug-log-messages-to-AAC-extradata.patch
>>
>>
>> diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
>> index c9761a1..3ec274f 100644
>> --- a/libavcodec/aacdec.c
>> +++ b/libavcodec/aacdec.c
>> @@ -79,7 +79,6 @@
>>             Parametric Stereo.
>>   */
>>
>> -
>>  #include "avcodec.h"
>>  #include "internal.h"
>>  #include "get_bits.h"
>
>
> stray whitespace change
>

oops, fixed

>From 94e8d0eea77480630f84368c97646cabc0f50628 Mon Sep 17 00:00:00 2001
From: Alex Converse <aconverse@google.com>
Date: Wed, 20 Apr 2011 11:23:34 -0700
Subject: [PATCH] Add some debug log messages to AAC extradata
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1"

This is a multi-part message in MIME format.
--------------1
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

13 years agoFix mov debug (u)int64_t format strings.
Alex Converse [Wed, 20 Apr 2011 17:25:47 +0000 (17:25 +0000)]
Fix mov debug (u)int64_t format strings.

13 years agobswap: use native types for av_bwap16().
Jason Garrett-Glaser [Fri, 22 Apr 2011 21:59:55 +0000 (17:59 -0400)]
bswap: use native types for av_bwap16().

This prevents a call to bytestream_get_be16() using a movzwl both before
and after the ror instruction, which is obviously inefficient. Arm uses
the same trick also.

Sintel decoding goes from (avg+SD) 9.856 +/- 0.003 to 9.797 +/- 0.003 sec.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agodoc: FLV muxing is supported.
Carl Eugen Hoyos [Fri, 22 Apr 2011 17:24:17 +0000 (19:24 +0200)]
doc: FLV muxing is supported.

Signed-off-by: Martin Storsjö <martin@martin.st>
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.