OSDN Git Service

android-x86/external-ffmpeg.git
12 years agoswscale: Fix stack alignment for SSE
John Stebbins [Fri, 18 Nov 2011 23:06:17 +0000 (15:06 -0800)]
swscale: Fix stack alignment for SSE

Although gcc guarantees 16 byte stack alignment, threads under WinXP
don't appear to be guaranteed to start stack aligned.  So fix the
alignment.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoavcodec: move some AVCodecContext fields to an internal struct.
Justin Ruggles [Tue, 15 Nov 2011 20:34:50 +0000 (15:34 -0500)]
avcodec: move some AVCodecContext fields to an internal struct.

A new field, AVCodecContext.internal is used to hold a new struct
AVCodecInternal, which has private fields that are not codec-specific and are
used by general libavcodec functions.

Moved internal_buffer, internal_buffer_count, and is_copy.

12 years agoavcodec: use av_opt_set() instead of deprecated av_set_string3()
Justin Ruggles [Sat, 19 Nov 2011 06:14:27 +0000 (01:14 -0500)]
avcodec: use av_opt_set() instead of deprecated av_set_string3()

12 years agoavcodec: fix some const warnings
Justin Ruggles [Sat, 19 Nov 2011 06:09:48 +0000 (01:09 -0500)]
avcodec: fix some const warnings

libavcodec/options.c:583: warning: assignment discards qualifiers from pointer
target type
libavcodec/options.c:589: warning: initialization discards qualifiers from
pointer target type

12 years agoavcodec: remove pointless AVOption, internal_buffer_count
Justin Ruggles [Sat, 19 Nov 2011 00:49:24 +0000 (19:49 -0500)]
avcodec: remove pointless AVOption, internal_buffer_count

12 years agoimgutils: Fix illegal read.
Thierry Foucu [Sat, 19 Nov 2011 01:36:50 +0000 (17:36 -0800)]
imgutils: Fix illegal read.

Found with address sanitizer.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
12 years agoconfigure: add check for w32threads to enable it automatically
Janne Grunau [Tue, 1 Nov 2011 19:41:43 +0000 (20:41 +0100)]
configure: add check for w32threads to enable it automatically

12 years agortmp: do not hardcode invoke numbers
Josh Allmann [Sat, 12 Nov 2011 21:28:58 +0000 (13:28 -0800)]
rtmp: do not hardcode invoke numbers

Note: FCPublish/FCUnpublish are adobe server specific and not described
in the rtmp specification. Some servers might not cope with them at
all.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agocinepack: return non-generic errors
Luca Barbato [Fri, 18 Nov 2011 11:10:41 +0000 (12:10 +0100)]
cinepack: return non-generic errors

12 years agofate-lavf-ts: use -mpegts_transport_stream_id option.
Anton Khirnov [Mon, 14 Nov 2011 08:11:26 +0000 (09:11 +0100)]
fate-lavf-ts: use -mpegts_transport_stream_id option.

Serves as a test of muxer private options.

12 years agoAdd an APIchanges entry and a minor bump for avio changes.
Anton Khirnov [Sun, 13 Nov 2011 16:08:26 +0000 (17:08 +0100)]
Add an APIchanges entry and a minor bump for avio changes.

12 years agoavio: Mark the old interrupt callback mechanism as deprecated
Martin Storsjö [Mon, 7 Nov 2011 10:17:50 +0000 (12:17 +0200)]
avio: Mark the old interrupt callback mechanism as deprecated

Prepare for removing it at an upcoming major bump.

12 years agoavplay: Set the new interrupt callback
Martin Storsjö [Sun, 6 Nov 2011 21:28:49 +0000 (23:28 +0200)]
avplay: Set the new interrupt callback

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavconv: Set new interrupt callbacks for all AVFormatContexts, use avio_open2() everywhere
Martin Storsjö [Sun, 6 Nov 2011 21:22:04 +0000 (23:22 +0200)]
avconv: Set new interrupt callbacks for all AVFormatContexts, use avio_open2() everywhere

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agocinepak: remove redundant coordinate checks
Michael Niedermayer [Wed, 16 Nov 2011 16:25:39 +0000 (17:25 +0100)]
cinepak: remove redundant coordinate checks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agocinepak: check strip_size
Michael Niedermayer [Wed, 16 Nov 2011 16:21:42 +0000 (17:21 +0100)]
cinepak: check strip_size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agocinepak, simplify, use AV_RB24()
Michael Niedermayer [Wed, 16 Nov 2011 16:16:38 +0000 (17:16 +0100)]
cinepak, simplify, use AV_RB24()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agocinepak: simplify, use FFMIN()
Michael Niedermayer [Wed, 16 Nov 2011 16:15:15 +0000 (17:15 +0100)]
cinepak: simplify, use FFMIN()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agocinepak: Fix division by zero, ask for sample if encoded_buf_size is 0
Michael Niedermayer [Wed, 16 Nov 2011 14:10:26 +0000 (15:10 +0100)]
cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoapplehttp: Fix seeking in streams not starting at DTS=0
Panagiotis H.M. Issaris [Tue, 15 Nov 2011 17:35:03 +0000 (18:35 +0100)]
applehttp: Fix seeking in streams not starting at DTS=0

The Apple HTTP Live Streaming demuxer's implementation of
seeking searches for the MPEG TS segment which contains the
requested timestamp.  In its current implementation it assumes
that the first segment will start from 0.

But, MPEG TS streams do not necessarily start with timestamp
(near) 0, causing seeking to fail for those streams.

This also occurs when using live streaming of HTTP Live Streams.
In this case sliding playlists may be used, which means that in
that case only the last x encoded segments are stored, the earlier
segments get deleted from disk and removed from the playlist.
Because of this, when starting playback of a stream in the middle
of such a broadcast, the initial segment fetched after parsing
the m3u8 playlist will not start from timestamp (near) 0, causing
(the admittedly limited live) seeking to fail.

This patch changes this demuxers seeking implementation to use
the initial DTS as an offset for searching the segments containing
the requested timestamp.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Don't use the normal http proxy mechanism for https
Martin Storsjö [Thu, 10 Nov 2011 12:57:15 +0000 (14:57 +0200)]
http: Don't use the normal http proxy mechanism for https

The tls protocol handles connections via proxies internally.

With TLS/SSL, the peer verification requires that the client
speaks directly with the server, since the proxy doesn't have
the remote server's private key.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agotls: Handle connection via a http proxy
Martin Storsjö [Thu, 10 Nov 2011 13:26:23 +0000 (15:26 +0200)]
tls: Handle connection via a http proxy

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Reorder two code blocks
Martin Storsjö [Thu, 10 Nov 2011 12:55:18 +0000 (14:55 +0200)]
http: Reorder two code blocks

This is in preparation for a later commit.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Add a new protocol for opening connections via http proxies
Martin Storsjö [Thu, 10 Nov 2011 12:53:16 +0000 (14:53 +0200)]
http: Add a new protocol for opening connections via http proxies

This opens a plain TCP connection through the proxy via the
CONNECT HTTP method. Normally, this is allowed for connections
on port 443, but can in general be used to allow connections
to any port (depending on proxy configuration), and could thus
be used to tunnel any TCP connection via a HTTP proxy.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Split out the non-chunked buffer reading part from http_read
Martin Storsjö [Thu, 10 Nov 2011 12:52:50 +0000 (14:52 +0200)]
http: Split out the non-chunked buffer reading part from http_read

This is in preparation for a later commit, where this function
is reused.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agosegafilm: add support for raw videos
Matthew Hoops [Tue, 15 Nov 2011 01:08:50 +0000 (20:08 -0500)]
segafilm: add support for raw videos

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpdec: only use RTCP for PTS when synchronizing multiple streams
John Brooks [Wed, 9 Nov 2011 23:28:35 +0000 (16:28 -0700)]
rtpdec: only use RTCP for PTS when synchronizing multiple streams

RTCP timestamps are only necessary to synchronize time between
multiple streams. For a single stream, the RTP packet timestamp
provides more reliable timing. As a result, single-stream RTP
sessions should now have accurate and monotonic PTS.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpdec: unwrap RTP timestamps for PTS calculation
John Brooks [Thu, 17 Nov 2011 15:50:12 +0000 (08:50 -0700)]
rtpdec: unwrap RTP timestamps for PTS calculation

The timestamp field in RTPDemuxContext was unused before this.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agovp5: Fix illegal read.
Alex Converse [Thu, 17 Nov 2011 18:06:14 +0000 (10:06 -0800)]
vp5: Fix illegal read.

Found with Address Sanitizer

12 years agovp6: Fix illegal read.
Thierry Foucu [Thu, 17 Nov 2011 17:39:52 +0000 (09:39 -0800)]
vp6: Fix illegal read.

Found with Address Sanitizer

Signed-off-by: Alex Converse <alex.converse@gmail.com>
12 years agotls: Use TLSv1_client_method for OpenSSL
Martin Storsjö [Thu, 17 Nov 2011 09:15:27 +0000 (11:15 +0200)]
tls: Use TLSv1_client_method for OpenSSL

TLSv1 is compatible with SSLv3, so this doesn't change much
in terms of compatibility. By explicitly using TLSv1, OpenSSL
sends the server name indication (SNI) header, which we
already set using SSL_set_tlsext_host_name (earlier, this
didn't have any effect).

SNI allows servers to serve SSL content for different host
names with separate certificates on one single port (vhosts).

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agompegaudiodec: Don't use a nonexistent log context for av_dlog
Martin Storsjö [Wed, 16 Nov 2011 09:33:53 +0000 (11:33 +0200)]
mpegaudiodec: Don't use a nonexistent log context for av_dlog

This fixes builds with DEBUG defined, broken since
1158745a2d12966c58e83b66243a42f20190812e.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavformat: Accept the ISO8601 separate format as input, too
Martin Storsjö [Mon, 7 Nov 2011 22:12:09 +0000 (00:12 +0200)]
avformat: Accept the ISO8601 separate format as input, too

This makes the function accept the format of creation_time
as output by demuxers (e.g. the mov demuxer), making the
creation timestamp stay intact if transcoding.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavformat: Interpret times in ff_iso8601_to_unix_time as UTC
Martin Storsjö [Mon, 7 Nov 2011 21:32:21 +0000 (23:32 +0200)]
avformat: Interpret times in ff_iso8601_to_unix_time as UTC

This function is used in muxers for parsing the 'creation_time'
metadata key, for converting it to a time value.

This makes it match the behaviour of the exported 'creation_time'
metadata from demuxers, where it is in UTC, too.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavutil: Add av_timegm as a public function
Martin Storsjö [Mon, 7 Nov 2011 21:20:31 +0000 (23:20 +0200)]
avutil: Add av_timegm as a public function

This is useful, since the normal timegm function isn't a standard
function (requiring _BSD_SOURCE or _SVID_SOURCE on glibc to
be visible, and not available on e.g. windows). The widely available
function mktime uses the local time zone, which requires ugly
workarounds to handle UTC time.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agocinepak: Add another special case so that it can handle the following file:
Mike Melanson [Wed, 16 Nov 2011 07:06:48 +0000 (23:06 -0800)]
cinepak: Add another special case so that it can handle the following file:

http://samples.mplayerhq.hu/V-codecs/CVID/bad_cinepak_frame_size.mov

This fix works around another work around which handles a different type
of odd Cinepak data.

Thanks to Matthew Hoops (clone2727 - gmail.com) for the sample and fix.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolagarith: add some RGBA decoding support
Kostya Shishkov [Sat, 12 Nov 2011 19:54:27 +0000 (20:54 +0100)]
lagarith: add some RGBA decoding support

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolagarith: Add correct line prediction for RGB
Nathan Caldwell [Wed, 16 Nov 2011 07:45:00 +0000 (00:45 -0700)]
lagarith: Add correct line prediction for RGB

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolavf: fix multiplication overflow in avformat_find_stream_info()
Mans Rullgard [Tue, 15 Nov 2011 22:33:49 +0000 (22:33 +0000)]
lavf: fix multiplication overflow in avformat_find_stream_info()

Converting to double before the multiplication rather than after
avoids an integer overflow in some cases.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agocosmetics: indentation
Justin Ruggles [Thu, 3 Nov 2011 19:53:43 +0000 (15:53 -0400)]
cosmetics: indentation

12 years agompegaudiodec: init static tables in AVCodec.init_static_data()
Justin Ruggles [Thu, 3 Nov 2011 18:59:37 +0000 (14:59 -0400)]
mpegaudiodec: init static tables in AVCodec.init_static_data()

12 years agobinkvideo: simplify and remove invalid shifts
Mans Rullgard [Sun, 13 Nov 2011 15:25:53 +0000 (15:25 +0000)]
binkvideo: simplify and remove invalid shifts

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agopulse: compute frame_duration once and fix it
Luca Barbato [Mon, 14 Nov 2011 14:53:59 +0000 (15:53 +0100)]
pulse: compute frame_duration once and fix it

The frame duration was calculated without taking in account the
bytes per sample.

Thanks to Lorenzo Pistone <blaffablaffa@gmail.com> for pointing
the issue and providing an initial fix.

12 years agolavf: simplify format_child_class_next()
Luca Barbato [Mon, 14 Nov 2011 11:24:21 +0000 (12:24 +0100)]
lavf: simplify format_child_class_next()

And fix the error introduced when adding private option to avio.
See 32caa7b13cecca59213c73fa94dd683c2b003bfd

12 years agohwaccel: OS X Video Decoder Acceleration (VDA) support.
Sebastien Zwickert [Fri, 11 Nov 2011 14:48:21 +0000 (15:48 +0100)]
hwaccel: OS X Video Decoder Acceleration (VDA) support.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agodoc: add support for an optional navigation bar in texi2html pages
Janne Grunau [Sun, 13 Nov 2011 18:32:35 +0000 (19:32 +0100)]
doc: add support for an optional navigation bar in texi2html pages

The navigation header for the web pages lives in a different repository.
Read it during documentation regeneration to use the same navigation bar
on all pages.

12 years agolavf: pass options from AVFormatContext to avio.
Anton Khirnov [Sat, 5 Nov 2011 11:30:21 +0000 (12:30 +0100)]
lavf: pass options from AVFormatContext to avio.

12 years agoavformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwards
Martin Storsjö [Sun, 6 Nov 2011 21:11:29 +0000 (23:11 +0200)]
avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwards

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavio: add avio_open2, taking an interrupt callback and options
Martin Storsjö [Sun, 6 Nov 2011 21:03:45 +0000 (23:03 +0200)]
avio: add avio_open2, taking an interrupt callback and options

The interrupt callback has to be passed in during opening (setting it
after opening isn't enough), since a blocking open couldn't be
interrupted otherwise.

Options are passed down to procotols and also need to be available
during open() in most cases.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavio: add support for passing options to protocols.
Anton Khirnov [Sat, 5 Nov 2011 09:04:04 +0000 (10:04 +0100)]
avio: add support for passing options to protocols.

Not used anywhere yet, support for passing options from avio_open() will
follow.

12 years agoavio: add and use ffurl_protocol_next().
Anton Khirnov [Sat, 5 Nov 2011 10:42:13 +0000 (11:42 +0100)]
avio: add and use ffurl_protocol_next().

12 years agoavformat: Pass the interrupt callback on to chained muxers/demuxers
Martin Storsjö [Sun, 6 Nov 2011 20:55:40 +0000 (22:55 +0200)]
avformat: Pass the interrupt callback on to chained muxers/demuxers

There are a few more cases of chained demuxers, but they
only use custom IO which don't do any blocking IO and thus
don't need the callback.

12 years agoavio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc
Martin Storsjö [Sun, 6 Nov 2011 20:50:44 +0000 (22:50 +0200)]
avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc

Change all uses of these function to pass the relevant
callback on.

12 years agoavformat: Use ff_check_interrupt
Martin Storsjö [Sun, 6 Nov 2011 20:34:24 +0000 (22:34 +0200)]
avformat: Use ff_check_interrupt

12 years agoavio: Add an internal utility function for checking the new interrupt callback
Martin Storsjö [Sun, 6 Nov 2011 20:10:21 +0000 (22:10 +0200)]
avio: Add an internal utility function for checking the new interrupt callback

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavio: Add AVIOInterruptCB
Martin Storsjö [Sun, 6 Nov 2011 12:10:16 +0000 (14:10 +0200)]
avio: Add AVIOInterruptCB

This is a better io interrupt callback function, which has an
opaque parameter, which is given to the interrupt callback.

This allows callers to precisely cancel IO for one single
AVFormatContext, without interrupt other ones in the same
process.

Note, it's not needed in AVIOContext, at the moment.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agotexi2html: remove stray \n
Luca Barbato [Sun, 13 Nov 2011 11:25:29 +0000 (12:25 +0100)]
texi2html: remove stray \n

Single-quoted strings are printed verbatim in perl.

12 years agodoc: prettyfy the texi2html documentation
Luca Barbato [Sun, 13 Nov 2011 03:05:13 +0000 (04:05 +0100)]
doc: prettyfy the texi2html documentation

make it use the website css and start structuring it so it is consistent

12 years agoswscale: handle unaligned buffers in yuv2plane1
Ronald S. Bultje [Sun, 13 Nov 2011 04:40:41 +0000 (05:40 +0100)]
swscale: handle unaligned buffers in yuv2plane1

The issue had been introduced in
c435653627529e22d74214c2266f571255e404d6

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agovble: remove vble_error_close
Janne Grunau [Fri, 11 Nov 2011 20:57:06 +0000 (21:57 +0100)]
vble: remove vble_error_close

It does not make much sense to factor the error handling to its own
av_always_inline function. Fixes "format not a string literal and no
format arguments" warning in the av_log.

12 years agoVBLE Decoder
Derek Buitenhuis [Fri, 11 Nov 2011 19:46:19 +0000 (14:46 -0500)]
VBLE Decoder

Add a decoder for the VBLE Lossless Codec, which
still has a cult following. Used to be popular
several years ago on doom9.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agotta: use an integer instead of a pointer to iterate output samples
Justin Ruggles [Fri, 4 Nov 2011 02:48:15 +0000 (22:48 -0400)]
tta: use an integer instead of a pointer to iterate output samples

12 years agoshorten: do not modify samples pointer when interleaving
Justin Ruggles [Fri, 4 Nov 2011 00:54:38 +0000 (20:54 -0400)]
shorten: do not modify samples pointer when interleaving

12 years agompc7: only support stereo input.
Justin Ruggles [Thu, 3 Nov 2011 03:02:52 +0000 (23:02 -0400)]
mpc7: only support stereo input.

The Musepack SV7 reference encoder converts mono to stereo when encoding.

12 years agodpcm: do not try to decode empty packets
Justin Ruggles [Wed, 2 Nov 2011 20:49:38 +0000 (16:49 -0400)]
dpcm: do not try to decode empty packets

12 years agodpcm: remove unneeded buf_size==0 check.
Justin Ruggles [Wed, 2 Nov 2011 20:47:53 +0000 (16:47 -0400)]
dpcm: remove unneeded buf_size==0 check.

It is already checked in avcodec_decode_audio3()

12 years agotwinvq: add SSE/AVX optimized sum/difference stereo interleaving
Justin Ruggles [Sun, 30 Oct 2011 05:13:55 +0000 (01:13 -0400)]
twinvq: add SSE/AVX optimized sum/difference stereo interleaving

12 years agovqf/twinvq: pass vqf COMM chunk info in extradata
Justin Ruggles [Sun, 30 Oct 2011 04:46:16 +0000 (00:46 -0400)]
vqf/twinvq: pass vqf COMM chunk info in extradata

This is needed because the twinvq decoder cannot rely on bit_rate to be set.
The API documentation says that bit_rate is set by libavcodec, not by the
user.

12 years agovqf: do not set bits_per_coded_sample for TwinVQ.
Justin Ruggles [Sat, 29 Oct 2011 23:24:55 +0000 (19:24 -0400)]
vqf: do not set bits_per_coded_sample for TwinVQ.

It is a lossy codec with varying quantization, so bits_per_coded_sample is
not applicable.

12 years agotwinvq: check for allocation failure in init_mdct_win()
Justin Ruggles [Sat, 29 Oct 2011 22:56:42 +0000 (18:56 -0400)]
twinvq: check for allocation failure in init_mdct_win()

12 years agoswscale: add padding to conversion buffer.
Sean McGovern [Fri, 11 Nov 2011 00:16:58 +0000 (19:16 -0500)]
swscale: add padding to conversion buffer.

Altivec does unaligned reads from this buffer in
hscale_altivec_real(), and can thus read up to 16 bytes beyond
the end of the buffer. Therefore, add an extra 16 bytes of
padding at the end of the conversion buffer.

This fixes fate-lavfi-pixfmts_scale on AltiVec-enabled builds
under valgrind.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agortpdec: Simplify finalize_packet
John Brooks [Wed, 9 Nov 2011 23:28:35 +0000 (16:28 -0700)]
rtpdec: Simplify finalize_packet

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Handle proxy authentication
Martin Storsjö [Fri, 11 Nov 2011 09:21:42 +0000 (11:21 +0200)]
http: Handle proxy authentication

Tested with both Basic and Digest authentication, and tested with
both proxy authentication and authentication for the requested
resource at the same time.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Print an error message for Authorization Required, too
Martin Storsjö [Thu, 10 Nov 2011 16:21:17 +0000 (18:21 +0200)]
http: Print an error message for Authorization Required, too

The error was hidden before, to avoid showing an error on the
first request where no auth has been provided, when the server
indicates which authentication method to use.

Now the error is printed if an authentication method was used,
but failed.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoAVOptions: don't return an invalid option when option list is empty
Anton Khirnov [Thu, 10 Nov 2011 08:19:09 +0000 (09:19 +0100)]
AVOptions: don't return an invalid option when option list is empty

12 years agoAIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)
Mike Melanson [Tue, 8 Nov 2011 07:28:02 +0000 (23:28 -0800)]
AIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agodoc: update libavfilter documentation
Luca Barbato [Tue, 8 Nov 2011 19:37:58 +0000 (11:37 -0800)]
doc: update libavfilter documentation

Update the reference to the conversion tool to use avconv and
make sure the example line works as supposed.
Remove the paragraph pointing to the svn repo

12 years agotls: Use the URLContext as logging context
Martin Storsjö [Thu, 10 Nov 2011 15:52:38 +0000 (17:52 +0200)]
tls: Use the URLContext as logging context

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoaes: Avoid illegal read and don't generate more key than we use.
Alex Converse [Fri, 4 Nov 2011 01:13:57 +0000 (18:13 -0700)]
aes: Avoid illegal read and don't generate more key than we use.

12 years agompc7: Fix memset call in mpc7_decode_frame function
Alex Converse [Wed, 9 Nov 2011 21:40:44 +0000 (13:40 -0800)]
mpc7: Fix memset call in mpc7_decode_frame function

12 years agoatrac1: use correct context for av_log()
Justin Ruggles [Wed, 2 Nov 2011 16:06:04 +0000 (12:06 -0400)]
atrac1: use correct context for av_log()

12 years agoapedec: consume the whole packet when copying to the decoder buffer.
Justin Ruggles [Mon, 31 Oct 2011 18:49:34 +0000 (14:49 -0400)]
apedec: consume the whole packet when copying to the decoder buffer.

This avoids artifically consuming a partial packet but ignoring remaining data
in subsequent calls.

12 years agoapedec: do not needlessly copy s->samples to nblocks.
Justin Ruggles [Mon, 31 Oct 2011 19:10:19 +0000 (15:10 -0400)]
apedec: do not needlessly copy s->samples to nblocks.

also move nblocks to the local scope where it is used.

12 years agoapedec: check output buffer size after calculating actual output size
Justin Ruggles [Mon, 31 Oct 2011 19:03:14 +0000 (15:03 -0400)]
apedec: check output buffer size after calculating actual output size

12 years agoapedec: remove unneeded entropy decoder normalization.
Justin Ruggles [Mon, 31 Oct 2011 18:57:04 +0000 (14:57 -0400)]
apedec: remove unneeded entropy decoder normalization.

The decoder already skips data at the end of the packet without this.
Also remove 2 APEContext fields that were only used for the end-of-frame
normalization.

12 years agotruespeech: use memmove() in truespeech_update_filters()
Justin Ruggles [Sat, 29 Oct 2011 22:25:40 +0000 (18:25 -0400)]
truespeech: use memmove() in truespeech_update_filters()

12 years agovorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
Justin Ruggles [Sun, 30 Oct 2011 22:41:00 +0000 (18:41 -0400)]
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check

The user could provide a larger buffer, which is already checked separately
before writing output.

12 years agovorbisdec: remove unneeded buf_size==0 check
Justin Ruggles [Sun, 30 Oct 2011 22:40:21 +0000 (18:40 -0400)]
vorbisdec: remove unneeded buf_size==0 check

12 years agovorbisdec: return proper error codes instead of made-up ones
Justin Ruggles [Sun, 30 Oct 2011 22:38:19 +0000 (18:38 -0400)]
vorbisdec: return proper error codes instead of made-up ones

12 years agohttp: Don't add a Range: bytes=0- header for POST
Martin Storsjö [Thu, 10 Nov 2011 09:09:26 +0000 (11:09 +0200)]
http: Don't add a Range: bytes=0- header for POST

That header simply doesn't make sense in that context.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agosunrast: Check for invalid/corrupted bitstream
Laurent Aimar [Tue, 27 Sep 2011 22:15:32 +0000 (22:15 +0000)]
sunrast: Check for invalid/corrupted bitstream

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agohttp: Change the chunksize AVOption into chunked_post
Martin Storsjö [Thu, 10 Nov 2011 09:03:35 +0000 (11:03 +0200)]
http: Change the chunksize AVOption into chunked_post

The chunksize internal variable has two different uses - for
reading, it's the amount of data left of the current chunk
(or -1 if the server doesn't send data in chunked mode), where
it's only an internal state variable. For writing, it's used
to decide whether to enable chunked encoding (by default), by
using the value 0, or disable chunked encoding (value -1).

This, while consistent, doesn't make much sense to expose
as an AVOption. This splits the usage of the internal variable
into two variables, chunksize which is used for reading (as
before), and chunked_post which is the user-settable option,
with the values 0 and 1, where 1 is default.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Add encoding/decoding flags to the AVOptions
Anton Khirnov [Thu, 10 Nov 2011 08:34:58 +0000 (09:34 +0100)]
http: Add encoding/decoding flags to the AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavconv: remove some codec-specific hacks
Anton Khirnov [Wed, 9 Nov 2011 20:16:27 +0000 (21:16 +0100)]
avconv: remove some codec-specific hacks

The problem they are supposed to fix is handled in riff.c, so those
hacks are pointless.

12 years agocrypto: add decoding flag to options.
Anton Khirnov [Sat, 5 Nov 2011 13:07:13 +0000 (14:07 +0100)]
crypto: add decoding flag to options.

12 years agotls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK
Anton Khirnov [Sat, 5 Nov 2011 11:48:02 +0000 (12:48 +0100)]
tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK

12 years agohttp: use different classes for http and https.
Anton Khirnov [Sat, 5 Nov 2011 11:54:01 +0000 (12:54 +0100)]
http: use different classes for http and https.

12 years agohttp: Change an error log message to a warning
Martin Storsjö [Tue, 8 Nov 2011 23:14:05 +0000 (01:14 +0200)]
http: Change an error log message to a warning

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Remove the now unused ff_http_set_headers custom function
Martin Storsjö [Mon, 7 Nov 2011 09:46:29 +0000 (11:46 +0200)]
http: Remove the now unused ff_http_set_headers custom function

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agomms: Set http custom headers via the AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:48:51 +0000 (11:48 +0200)]
mms: Set http custom headers via the AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>