platform/upstream/libav.git
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).

13 years agolibavcodec: Bump micro after adding the dtx AVOptions
Martin Storsjö [Wed, 13 Apr 2011 22:04:53 +0000 (01:04 +0300)]
libavcodec: Bump micro after adding the dtx AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr, libvo-amrwbenc: Allow enabling DTX via private AVOptions
Martin Storsjö [Wed, 13 Apr 2011 18:47:12 +0000 (21:47 +0300)]
libopencore-amr, libvo-amrwbenc: Allow enabling DTX via private AVOptions

DTX, discontinuous transmission, allows emitting frames with
comfort noise when no voice is detected in the input audio.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr, libvo-amrwbenc: Only check the bitrate when changed
Martin Storsjö [Wed, 13 Apr 2011 08:03:19 +0000 (11:03 +0300)]
libopencore-amr, libvo-amrwbenc: Only check the bitrate when changed

Also rename the incorrectly named enc_bitrate to enc_mode, use the
enc_bitrate variable for storing the last chosen bitrate.

This avoids continuous warning log messages if not using an
exactly matching bitrate, while still allowing changing bitrate
at any point.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr, libvo-amrwbenc: Find the closest matching bitrate
Martin Storsjö [Wed, 13 Apr 2011 07:59:08 +0000 (10:59 +0300)]
libopencore-amr, libvo-amrwbenc: Find the closest matching bitrate

Dynamically print the supported bitrates from the local table,
instead of using a hardcoded log message.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibvo-*: Fix up the long codec names
Martin Storsjö [Wed, 13 Apr 2011 19:31:20 +0000 (22:31 +0300)]
libvo-*: Fix up the long codec names

Include VisualOn to clarify the codec name, but remove the
actual library name from the user-friendly description.
Also mention Android, to clarify which VisualOn implementation
this refers to, since they do sell other variants of the same
code, too.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibavcodec: Mark AVCodec->priv_class const
Martin Storsjö [Wed, 13 Apr 2011 18:48:00 +0000 (21:48 +0300)]
libavcodec: Mark AVCodec->priv_class const

This avoids warnings of this kind, everywhere priv_class
is initialized:

warning: initialization discards qualifiers from pointer target type

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoswscale: Factorize FAST_BGR2YV12 definition.
Luca Barbato [Mon, 11 Apr 2011 17:48:13 +0000 (19:48 +0200)]
swscale: Factorize FAST_BGR2YV12 definition.

It is used only for x86 so it will eventually be moved with that code
into the x86 arch subdirectory.

13 years agolibvo-aacenc: Only produce extradata if the global header flag is set
Martin Storsjö [Tue, 12 Apr 2011 07:35:23 +0000 (10:35 +0300)]
libvo-aacenc: Only produce extradata if the global header flag is set

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolavf: postpone removal of public metadata conversion API
Anton Khirnov [Wed, 23 Feb 2011 06:38:52 +0000 (07:38 +0100)]
lavf: postpone removal of public metadata conversion API

It's been deprecated only a few months ago, long after 0.6.

13 years agolavc: postpone removal of request_channels
Anton Khirnov [Wed, 6 Apr 2011 05:47:26 +0000 (07:47 +0200)]
lavc: postpone removal of request_channels

No decoder uses the supposed replacement, request_channel_layout, yet.

13 years agolavc: postpone removal of audioconvert and sample_fmt wrappers
Anton Khirnov [Wed, 6 Apr 2011 05:31:32 +0000 (07:31 +0200)]
lavc: postpone removal of audioconvert and sample_fmt wrappers

Those were moved to libavutil only recently.

13 years agolavf: postpone removal of deprecated avio functions
Anton Khirnov [Wed, 23 Feb 2011 06:39:59 +0000 (07:39 +0100)]
lavf: postpone removal of deprecated avio functions

They've been deprecated very recently.

13 years agolibopencore-amr: Cosmetics: Rewrap and align
Martin Storsjö [Tue, 12 Apr 2011 21:25:43 +0000 (00:25 +0300)]
libopencore-amr: Cosmetics: Rewrap and align

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr, libvo-amrbwenc: Rename variables and functions
Martin Storsjö [Tue, 12 Apr 2011 21:20:26 +0000 (00:20 +0300)]
libopencore-amr, libvo-amrbwenc: Rename variables and functions

Avoid camelCase names for functions and variables.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr: Convert commented out debug logging into av_dlog
Martin Storsjö [Wed, 13 Apr 2011 07:12:56 +0000 (10:12 +0300)]
libopencore-amr: Convert commented out debug logging into av_dlog

Also add the avctx as logging context.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr: Remove an unused state variable
Martin Storsjö [Tue, 12 Apr 2011 20:58:45 +0000 (23:58 +0300)]
libopencore-amr: Remove an unused state variable

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibvo-amrwbenc: Don't explicitly store bitrate modes in the bitrate table
Martin Storsjö [Tue, 12 Apr 2011 21:42:24 +0000 (00:42 +0300)]
libvo-amrwbenc: Don't explicitly store bitrate modes in the bitrate table

The bitrate modes are equal to the array indices.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr: Remove a useless local variable
Martin Storsjö [Tue, 12 Apr 2011 21:17:48 +0000 (00:17 +0300)]
libopencore-amr: Remove a useless local variable

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const
Martin Storsjö [Tue, 12 Apr 2011 21:15:01 +0000 (00:15 +0300)]
libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr, libvo-amrwbenc: Return proper error codes in most places
Martin Storsjö [Tue, 12 Apr 2011 21:10:56 +0000 (00:10 +0300)]
libopencore-amr, libvo-amrwbenc: Return proper error codes in most places

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr: Don't print carriage returns in log messages
Martin Storsjö [Tue, 12 Apr 2011 21:08:14 +0000 (00:08 +0300)]
libopencore-amr: Don't print carriage returns in log messages

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr: Remove an old workaround for libamr header weirdness
Martin Storsjö [Tue, 12 Apr 2011 21:06:29 +0000 (00:06 +0300)]
libopencore-amr: Remove an old workaround for libamr header weirdness

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr: Make the opaque encoder pointer a void*
Martin Storsjö [Tue, 12 Apr 2011 20:56:41 +0000 (23:56 +0300)]
libopencore-amr: Make the opaque encoder pointer a void*

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibopencore-amr: Remove unused code fragments
Martin Storsjö [Tue, 12 Apr 2011 20:50:51 +0000 (23:50 +0300)]
libopencore-amr: Remove unused code fragments

This parts are heritage from the encoder part from the old
libamr code removed in SVN rev 19365.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoapplehttp: Only check the discard flags if v->ctx actually is initialized
Martin Storsjö [Mon, 11 Apr 2011 21:19:56 +0000 (00:19 +0300)]
applehttp: Only check the discard flags if v->ctx actually is initialized

This code could be executed if the demuxer reads more than one
segment before returning from av_open_input_stream.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agodoc: update developer guide
Luca Barbato [Sat, 9 Apr 2011 21:54:31 +0000 (23:54 +0200)]
doc: update developer guide

Refer to the current submission policy and refer to FATE in the
Regression Test section.

13 years agolavf: bump minor and add an APIChanges entry for the last avio changes
Anton Khirnov [Tue, 12 Apr 2011 08:01:30 +0000 (10:01 +0200)]
lavf: bump minor and add an APIChanges entry for the last avio changes

13 years agoavio: deprecate url_exist in favor of avio_check.
Anton Khirnov [Tue, 12 Apr 2011 07:46:45 +0000 (09:46 +0200)]
avio: deprecate url_exist in favor of avio_check.

13 years agofile: implement url_check() callback in the file and pipe protocols
Stefano Sabatini [Thu, 30 Sep 2010 11:21:42 +0000 (13:21 +0200)]
file: implement url_check() callback in the file and pipe protocols

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoavio: add avio_check()
Stefano Sabatini [Fri, 8 Apr 2011 16:32:25 +0000 (18:32 +0200)]
avio: add avio_check()

The new function is more flexible than url_exist(), as it allows to
specify which access flags to check, and does not require an explicit
open of the checked resource.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoavio: left-shift AVIO_ flags on next bump
Anton Khirnov [Wed, 13 Apr 2011 05:35:35 +0000 (07:35 +0200)]
avio: left-shift AVIO_ flags on next bump

Now AVIO_RDONLY is defined as 0, so it's not usable as a flag.

13 years agoCheck for successful h263 init in msmpeg4 init
Alberto Delmas [Mon, 12 Apr 2010 21:16:12 +0000 (23:16 +0200)]
Check for successful h263 init in msmpeg4 init

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agolavf/utils.c: Order packets with identical PTS by stream index.
Vitor Sessak [Mon, 11 Apr 2011 20:20:36 +0000 (16:20 -0400)]
lavf/utils.c: Order packets with identical PTS by stream index.

This allows for more reproducible results when using multi-threading.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoflvdec: Allow parsing keyframes metadata without seeking in most cases
Martin Storsjö [Tue, 12 Apr 2011 13:37:54 +0000 (16:37 +0300)]
flvdec: Allow parsing keyframes metadata without seeking in most cases

Stop the avio input at a point where amf_parse_object can
continue parsing the end of the object seamlessly, when all
data is available.

If unsupported data is encountered within the keyframes object,
try seeking to the start of the keyframes object - if the seek
back was successful, the caller can continue parsing the rest
of the AMF data.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoError out if vaapi is not found
Luca Barbato [Mon, 4 Apr 2011 13:24:19 +0000 (15:24 +0200)]
Error out if vaapi is not found

Make the behaviour consistent with the other external deps.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoavio: undeprecate av_url_read_fseek/fpause under nicer names
Anton Khirnov [Tue, 12 Apr 2011 07:37:10 +0000 (09:37 +0200)]
avio: undeprecate av_url_read_fseek/fpause under nicer names

It seems their replacements won't be ready anytime soon.

13 years agolibvo-*: Don't use deprecated sample format names and enum names
Martin Storsjö [Tue, 12 Apr 2011 07:33:35 +0000 (10:33 +0300)]
libvo-*: Don't use deprecated sample format names and enum names

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoflvdec: Fix support for flvtool2 "keyframes based" generated index
Kharkov Alexander [Fri, 8 Apr 2011 09:20:45 +0000 (16:20 +0700)]
flvdec: Fix support for flvtool2 "keyframes based" generated index

Current keyframes data parser unconditionally rewind metadata to
the end at the end of function. As result ALL metadata located
after keyframes index not parsed, and as metadata object can have
ANY placement inside metadata it can lead to unpredictable result
(bitrate can not be found, etc.). As result FLV movie will not
play at all in such situation.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibavcodec: Use "const enum AVSampleFormat[]" in AVCodec initialization
Martin Storsjö [Tue, 12 Apr 2011 07:32:43 +0000 (10:32 +0300)]
libavcodec: Use "const enum AVSampleFormat[]" in AVCodec initialization

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoFix the conversion of AV_SAMPLE_FMT_FLT and _DBL to AV_SAMPLE_FMT_S32.
Alex Converse [Mon, 11 Apr 2011 06:42:29 +0000 (23:42 -0700)]
Fix the conversion of AV_SAMPLE_FMT_FLT and _DBL to AV_SAMPLE_FMT_S32.

(1<<31) is undefined and seems to be evaluated by gcc to -2^31 when
these formulae require 2^31.

These conversions still need fate tests.

13 years agoConvert some undefined 1<<31 shifts into 1U<<31.
Alex Converse [Sun, 10 Apr 2011 00:22:04 +0000 (17:22 -0700)]
Convert some undefined 1<<31 shifts into 1U<<31.

According to ISO 9899:1999 S 6.5.7/4:

The result of E1 << E2 is E1 left-shifted E2 bit positions; vacated bits
are filled with zeros. If E1 has an unsigned type, the value of the
result is E1× 2^E2, reduced modulo one more than the maximum value
representable in the result type. If E1 has a signed type and
nonnegative value, and E1× 2^E2 is representable in the result type, then
that is the resulting value; otherwise, the behavior is undefined.

13 years agoAdd unconditional return statement to yuva420_rgb32_MMX() / yuva420_bgr32_MMX().
Diego Biurrun [Sun, 10 Apr 2011 19:12:08 +0000 (21:12 +0200)]
Add unconditional return statement to yuva420_rgb32_MMX() / yuva420_bgr32_MMX().

When HAVE_7REGS was not defined these functions had an empty body
causing the following warnings during compilation.
In file included from libswscale/x86/yuv2rgb_mmx.c:58:
libswscale/x86/yuv2rgb_template.c: In function ‘yuva420_rgb32_MMX’:
libswscale/x86/yuv2rgb_template.c:412: warning: no return statement in function returning non-void
libswscale/x86/yuv2rgb_template.c: In function ‘yuva420_bgr32_MMX’:
libswscale/x86/yuv2rgb_template.c:457: warning: no return statement in function returning non-void

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoFix compilation of timefilter test program.
Diego Biurrun [Sun, 10 Apr 2011 19:22:45 +0000 (21:22 +0200)]
Fix compilation of timefilter test program.

The printf function is forbidden in library code, but not in test programs,
so #undefine the printf macro that disables the system printf function.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoAdd support for AMR-WB encoding via libvo-amrwbenc
Martin Storsjö [Tue, 29 Dec 2009 14:48:09 +0000 (16:48 +0200)]
Add support for AMR-WB encoding via libvo-amrwbenc

The wrapper code is based on the libamr wrapper removed in SVN rev 19365.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoAdd an AAC encoder by using the libvo-aacenc library
Martin Storsjö [Sun, 19 Dec 2010 19:40:23 +0000 (21:40 +0200)]
Add an AAC encoder by using the libvo-aacenc library

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agog722: Return 8 bits per sample for g722 in av_get_bits_per_sample
Martin Storsjö [Sun, 10 Apr 2011 17:06:50 +0000 (20:06 +0300)]
g722: Return 8 bits per sample for g722 in av_get_bits_per_sample

This fixes a failing assert in ff_raw_read_header (in
fate-g722dec-1), where bits_per_coded_sample is set using this
function and is required to have a positive value.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoavio: add more documentation for AVIOContext.
Anton Khirnov [Sun, 10 Apr 2011 06:14:26 +0000 (08:14 +0200)]
avio: add more documentation for AVIOContext.

13 years agoParse sprite data for WMVP and WVP2, and decode sprites for the latter
Alberto Delmás [Fri, 8 Apr 2011 18:00:48 +0000 (20:00 +0200)]
Parse sprite data for WMVP and WVP2, and decode sprites for the latter

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoReplace outdated info on the FAQ
Lou Logan [Sat, 9 Apr 2011 11:50:07 +0000 (13:50 +0200)]
Replace outdated info on the FAQ

FAQ could use some work. This updates a few little details.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoRedefine sameq
Lou Logan [Sat, 9 Apr 2011 11:50:05 +0000 (13:50 +0200)]
Redefine sameq

I think the documentation of sameq is causing confusion and misuse of
this option.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agopad: fix example explanation
Stefano Sabatini [Sat, 9 Apr 2011 11:50:01 +0000 (13:50 +0200)]
pad: fix example explanation

"row" and "column" term positions in the explanation were inverted.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agogradfun: add notice from the MPlayer manual
Stefano Sabatini [Sat, 9 Apr 2011 11:49:57 +0000 (13:49 +0200)]
gradfun: add notice from the MPlayer manual

Add notice telling that the filter is designed for playback only.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoeval: add support for trunc, ceil, and floor functions
Stefano Sabatini [Sat, 9 Apr 2011 11:49:54 +0000 (13:49 +0200)]
eval: add support for trunc, ceil, and floor functions

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agodocumentation: add setdar and setsar description to filters.texi
Stefano Sabatini [Sat, 9 Apr 2011 11:49:48 +0000 (13:49 +0200)]
documentation: add setdar and setsar description to filters.texi

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoavio: document some members of AVIOContext.
Anton Khirnov [Sat, 9 Apr 2011 10:20:04 +0000 (12:20 +0200)]
avio: document some members of AVIOContext.

13 years agoavio: document avio_close().
Anton Khirnov [Sat, 9 Apr 2011 10:43:51 +0000 (12:43 +0200)]
avio: document avio_close().

13 years agoavio: cosmetics, vertically align comments.
Anton Khirnov [Sat, 9 Apr 2011 10:21:36 +0000 (12:21 +0200)]
avio: cosmetics, vertically align comments.

13 years agoavio: cosmetics, group the reading functions.
Anton Khirnov [Sat, 9 Apr 2011 06:55:53 +0000 (08:55 +0200)]
avio: cosmetics, group the reading functions.

13 years agoavio: cosmetics, merge all the FF_API_OLD_AVIO blocks.
Anton Khirnov [Sat, 9 Apr 2011 06:52:35 +0000 (08:52 +0200)]
avio: cosmetics, merge all the FF_API_OLD_AVIO blocks.

13 years agoavio: cosmetics, move AVIOContext to start of the file.
Anton Khirnov [Sat, 9 Apr 2011 06:44:14 +0000 (08:44 +0200)]
avio: cosmetics, move AVIOContext to start of the file.

13 years agoavio: update file header.
Anton Khirnov [Sat, 9 Apr 2011 06:30:15 +0000 (08:30 +0200)]
avio: update file header.

13 years agoos: fix OpenBSD/PowerPC compilation
Brad [Sat, 2 Apr 2011 21:16:59 +0000 (17:16 -0400)]
os: fix OpenBSD/PowerPC compilation

When attempting to re-enable the AltiVec support it was noticed
that we need to undefine _POSIX_C_SOURCE to appease the headers
for ff_get_cpu_flags_ppc() to be able to compile.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agopixfmt: add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE
Peter Ross [Sat, 9 Apr 2011 11:49:45 +0000 (13:49 +0200)]
pixfmt: add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE

PIX_FMT_BGR48LE is used by PhantomCINE demuxer.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agooggdec: fix demuxing chained audio streams
Clément Bœsch [Mon, 4 Apr 2011 22:29:01 +0000 (00:29 +0200)]
oggdec: fix demuxing chained audio streams

Chained ogg served by icecast and mpd should demux
properly now.

Fixes issue2337

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agofix typo
Compn [Sat, 9 Apr 2011 11:49:56 +0000 (13:49 +0200)]
fix typo

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agodaud: Don't write packets that are too large to have their size expressed in the...
Alex Converse [Fri, 8 Apr 2011 21:35:17 +0000 (14:35 -0700)]
daud: Don't write packets that are too large to have their size expressed in the bytestream.

13 years agopthread: validate_thread_parameters() ignored slice-threading being intentionally off
Alexander Strange [Sun, 3 Apr 2011 19:54:14 +0000 (15:54 -0400)]
pthread: validate_thread_parameters() ignored slice-threading being intentionally off

The thread_type API allows you to request only FF_THREAD_FRAME (instead of
FRAME | SLICE), but it was being ignored.
We don't implement both of them at the same time, so there isn't an effect
on current codecs, except that you can request no kinds of threading now
(a bit useless).

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoUse consistent condition for whether to run slice-threading execute function.
Reimar Döffinger [Sat, 2 Apr 2011 00:24:46 +0000 (20:24 -0400)]
Use consistent condition for whether to run slice-threading execute function.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavformat.h: fix a misplaced #endif
Anton Khirnov [Sat, 9 Apr 2011 05:30:33 +0000 (07:30 +0200)]
avformat.h: fix a misplaced #endif

13 years agovaapi: cope with VA-API 0.32, i.e. fix VC-1 decoding on Sandy Bridge.
Gwenole Beauchesne [Tue, 29 Mar 2011 08:52:15 +0000 (10:52 +0200)]
vaapi: cope with VA-API 0.32, i.e. fix VC-1 decoding on Sandy Bridge.

(cherry picked from commit a18e7b4fb77d3799cf21110b5e6dda4691a295b3)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agovaapi: filter out DELAYED_PIC_REF flag to determine field.
Gwenole Beauchesne [Tue, 29 Mar 2011 09:07:29 +0000 (11:07 +0200)]
vaapi: filter out DELAYED_PIC_REF flag to determine field.

This fixes ticket #23.

(cherry picked from commit 621f4c98df4ee9fd604a614f31e09eef9dd7d3ca)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agolavf: bump minor and add an APIChanges entry for avformat cleanup
Anton Khirnov [Fri, 8 Apr 2011 09:46:52 +0000 (11:46 +0200)]
lavf: bump minor and add an APIChanges entry for avformat cleanup

13 years agolavf: get rid of ffm-specific stuff in avformat.h
Anton Khirnov [Fri, 8 Apr 2011 09:21:13 +0000 (11:21 +0200)]
lavf: get rid of ffm-specific stuff in avformat.h

13 years agoavio: deprecate av_protocol_next().
Anton Khirnov [Mon, 4 Apr 2011 18:28:58 +0000 (20:28 +0200)]
avio: deprecate av_protocol_next().

13 years agoavio: add a function for iterating though protocol names.
Anton Khirnov [Mon, 4 Apr 2011 06:18:54 +0000 (08:18 +0200)]
avio: add a function for iterating though protocol names.

13 years agolavf: rename a parameter of av_sdp_create from buff->buf
Anton Khirnov [Fri, 8 Apr 2011 10:22:39 +0000 (12:22 +0200)]
lavf: rename a parameter of av_sdp_create from buff->buf

This is more consistent with the rest of the API.

13 years agolavf: rename avf_sdp_create to av_sdp_create.
Anton Khirnov [Fri, 8 Apr 2011 09:36:12 +0000 (11:36 +0200)]
lavf: rename avf_sdp_create to av_sdp_create.

The new name is more consistent with the rest of the API.

13 years agolavf: make av_guess_image2_codec internal
Anton Khirnov [Tue, 5 Apr 2011 11:13:53 +0000 (13:13 +0200)]
lavf: make av_guess_image2_codec internal

It doesn't look very useful as a public function.

13 years agoavio: make URLProtocol internal.
Anton Khirnov [Thu, 7 Apr 2011 19:01:17 +0000 (21:01 +0200)]
avio: make URLProtocol internal.

13 years agoavio: make URLContext internal.
Anton Khirnov [Thu, 7 Apr 2011 18:25:52 +0000 (20:25 +0200)]
avio: make URLContext internal.

13 years agolavf: mark av_pkt_dump(_log) for remove on $next+1 bump.
Anton Khirnov [Tue, 5 Apr 2011 10:59:27 +0000 (12:59 +0200)]
lavf: mark av_pkt_dump(_log) for remove on $next+1 bump.

13 years agolavf: use designated initializers for all protocols
Anton Khirnov [Fri, 8 Apr 2011 05:41:47 +0000 (07:41 +0200)]
lavf: use designated initializers for all protocols

This is more readable and makes it easier to reorder URLProtocol
members.

13 years agoapplehttp: don't use deprecated url_ functions.
Anton Khirnov [Fri, 8 Apr 2011 04:57:54 +0000 (06:57 +0200)]
applehttp: don't use deprecated url_ functions.

13 years agoavio: move two ff_udp_* functions from avio_internal to url.h
Anton Khirnov [Thu, 7 Apr 2011 18:15:43 +0000 (20:15 +0200)]
avio: move two ff_udp_* functions from avio_internal to url.h

13 years agoasfdec: remove a forgotten declaration of nonexistent function
Anton Khirnov [Thu, 7 Apr 2011 18:13:36 +0000 (20:13 +0200)]
asfdec: remove a forgotten declaration of nonexistent function

13 years agoavio: deprecate the typedef for URLInterruptCB
Anton Khirnov [Thu, 7 Apr 2011 17:17:55 +0000 (19:17 +0200)]
avio: deprecate the typedef for URLInterruptCB

There's no particular reason to pollute the namespace with a typedef for
it.

13 years agoproto: include os_support.h in network.h
Luca Barbato [Thu, 7 Apr 2011 13:09:03 +0000 (15:09 +0200)]
proto: include os_support.h in network.h

Fix compilation on systems without poll()

13 years agomatroskaenc: don't write an empty Cues element.
Anton Khirnov [Mon, 4 Apr 2011 20:29:21 +0000 (22:29 +0200)]
matroskaenc: don't write an empty Cues element.

13 years agolavc: add a FF_API_REQUEST_CHANNELS deprecation macro
Anton Khirnov [Wed, 6 Apr 2011 05:38:11 +0000 (07:38 +0200)]
lavc: add a FF_API_REQUEST_CHANNELS deprecation macro

And hide request_channels AVOption under it.

13 years agoavio: move extern url_interrupt_cb declaration from avio.h to url.h
Anton Khirnov [Mon, 4 Apr 2011 18:40:38 +0000 (20:40 +0200)]
avio: move extern url_interrupt_cb declaration from avio.h to url.h

13 years agoavio: make av_register_protocol2 internal.
Anton Khirnov [Mon, 4 Apr 2011 18:35:04 +0000 (20:35 +0200)]
avio: make av_register_protocol2 internal.

13 years agoavio: avio_ prefix for url_set_interrupt_cb.
Anton Khirnov [Mon, 4 Apr 2011 18:15:44 +0000 (20:15 +0200)]
avio: avio_ prefix for url_set_interrupt_cb.

13 years agoavio: AVIO_ prefixes for URL_ open flags.
Anton Khirnov [Mon, 4 Apr 2011 18:11:19 +0000 (20:11 +0200)]
avio: AVIO_ prefixes for URL_ open flags.