OSDN Git Service

android-x86/external-ffmpeg.git
12 years agoSupport 24-bit decoding
Mashiat Sarker Shakkhar [Sun, 22 Jan 2012 11:48:15 +0000 (17:48 +0600)]
Support 24-bit decoding

12 years agowmall: remove ;;
Michael Niedermayer [Tue, 3 Jan 2012 22:52:28 +0000 (23:52 +0100)]
wmall: remove ;;

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoCosmetics: Fix some whitespace errors and indentation
Mashiat Sarker Shakkhar [Fri, 27 Jan 2012 09:14:12 +0000 (01:14 -0800)]
Cosmetics: Fix some whitespace errors and indentation

12 years agoUse correct variable type for 32-bit samples buffer
Mashiat Sarker Shakkhar [Sun, 22 Jan 2012 11:49:19 +0000 (17:49 +0600)]
Use correct variable type for 32-bit samples buffer

12 years agoFix audio output
Mashiat Sarker Shakkhar [Mon, 2 Jan 2012 19:49:00 +0000 (01:49 +0600)]
Fix audio output

Up until now, the decoder didn't output anything
in the data buffer. This fixes all the issues
related to sample format, removes leftover code
and actually outputs some audio to data buffer.

With this, the only sample we have can be played.
Seeking is still broken though.

12 years agoSuppress dumping of residues buffer
Mashiat Sarker Shakkhar [Mon, 2 Jan 2012 19:51:17 +0000 (01:51 +0600)]
Suppress dumping of residues buffer

12 years agoUse quantizer value read from bitstream
Mashiat Sarker Shakkhar [Sun, 1 Jan 2012 08:32:10 +0000 (14:32 +0600)]
Use quantizer value read from bitstream

Currently the code initializes quantizer even
before reading it from bitstream and uses that
to dequantize samples.

12 years agoCosmetics: Remove two empty lines and realign some code
Mashiat Sarker Shakkhar [Sat, 31 Dec 2011 18:00:51 +0000 (00:00 +0600)]
Cosmetics: Remove two empty lines and realign some code

12 years agoReset acfilter_prevvalues buffer in clear_codec_buffers()
Mashiat Sarker Shakkhar [Sat, 31 Dec 2011 17:49:49 +0000 (23:49 +0600)]
Reset acfilter_prevvalues buffer in clear_codec_buffers()

12 years agoFix AC filter buffers and AC filter reversion
Mashiat Sarker Shakkhar [Sat, 31 Dec 2011 17:47:43 +0000 (23:47 +0600)]
Fix AC filter buffers and AC filter reversion

12 years agoPerform dequantization of channel coefficients
Mashiat Sarker Shakkhar [Fri, 23 Dec 2011 07:21:33 +0000 (13:21 +0600)]
Perform dequantization of channel coefficients

12 years agoPerform inverse inter-channel decorrelation and ac-filter
Mashiat Sarker Shakkhar [Fri, 23 Dec 2011 07:23:10 +0000 (13:23 +0600)]
Perform inverse inter-channel decorrelation and ac-filter

12 years agoImplement revert_inter_ch_decorr() and revert_acfilter()
Mashiat Sarker Shakkhar [Fri, 23 Dec 2011 07:17:28 +0000 (13:17 +0600)]
Implement revert_inter_ch_decorr() and revert_acfilter()

12 years agoEnable inverse-MCLMS filter
Mashiat Sarker Shakkhar [Thu, 22 Dec 2011 10:47:30 +0000 (16:47 +0600)]
Enable inverse-MCLMS filter

12 years agoFix inverse-MCLMS filtering routines
Mashiat Sarker Shakkhar [Thu, 22 Dec 2011 17:48:02 +0000 (23:48 +0600)]
Fix inverse-MCLMS filtering routines

12 years agoDo not update buffers in case no speed change is necessary
Mashiat Sarker Shakkhar [Thu, 8 Dec 2011 19:43:34 +0000 (01:43 +0600)]
Do not update buffers in case no speed change is necessary

12 years agoUse int for channel_coeffs instead of int16_t
Mashiat Sarker Shakkhar [Thu, 8 Dec 2011 19:17:09 +0000 (01:17 +0600)]
Use int for channel_coeffs instead of int16_t

12 years agoPass pointer to integer buffer instead of integer to memcpy
Mashiat Sarker Shakkhar [Thu, 8 Dec 2011 16:52:16 +0000 (22:52 +0600)]
Pass pointer to integer buffer instead of integer to memcpy

12 years agoPartially fix CDLMS prediction
Mashiat Sarker Shakkhar [Wed, 7 Dec 2011 21:57:21 +0000 (03:57 +0600)]
Partially fix CDLMS prediction

12 years agoFix lms_update()
Mashiat Sarker Shakkhar [Fri, 2 Dec 2011 10:24:50 +0000 (16:24 +0600)]
Fix lms_update()

12 years agoMove num_lms reading out of a loop
Mashiat Sarker Shakkhar [Thu, 1 Dec 2011 21:02:45 +0000 (03:02 +0600)]
Move num_lms reading out of a loop

12 years agoUse correct value for range
Mashiat Sarker Shakkhar [Thu, 1 Dec 2011 21:11:21 +0000 (03:11 +0600)]
Use correct value for range

The current range value causes an underflow
when negated and pushes anything less than zero
to the minimum.

12 years agoFix some int / int16_t / int32_t confusion
Mashiat Sarker Shakkhar [Thu, 1 Dec 2011 20:58:00 +0000 (02:58 +0600)]
Fix some int / int16_t / int32_t confusion

For now force everything to int16_t, except
for variables used as index

12 years agoImplement revert_mclms() and associated functions
Mashiat Sarker Shakkhar [Wed, 30 Nov 2011 16:41:12 +0000 (22:41 +0600)]
Implement revert_mclms() and associated functions

12 years agoFix two more int16_t vs. int confusion
Mashiat Sarker Shakkhar [Wed, 30 Nov 2011 16:39:56 +0000 (22:39 +0600)]
Fix two more int16_t vs. int confusion

If everything works fine for 16-bit streams,
the current code could be extended to do 24-bit.

12 years agoInit s->cdlms[][].recent to order - 1
Mashiat Sarker Shakkhar [Tue, 29 Nov 2011 19:55:21 +0000 (01:55 +0600)]
Init s->cdlms[][].recent to order - 1

Not sure if this is correct. But looks like
it was giving us off-by-one's when used to index
buffers.

12 years agoAdd a size argument to dump_int_buffer()
Mashiat Sarker Shakkhar [Tue, 29 Nov 2011 19:52:33 +0000 (01:52 +0600)]
Add a size argument to dump_int_buffer()

12 years agoGet rid of logging that are not required anymore
Mashiat Sarker Shakkhar [Tue, 29 Nov 2011 20:15:08 +0000 (02:15 +0600)]
Get rid of logging that are not required anymore

(Resolves some conflicts)

12 years agoFix some int vs. int16_t confusion
Mashiat Sarker Shakkhar [Tue, 29 Nov 2011 19:49:08 +0000 (01:49 +0600)]
Fix some int vs. int16_t confusion

Size should be determined from bits per sample.
The current code only accepts 16-bit streams.

12 years agocall revert_cdlms()
Mashiat Sarker Shakkhar [Mon, 21 Nov 2011 19:03:15 +0000 (01:03 +0600)]
call revert_cdlms()

12 years agoFix some loop conditions to prevent overreads
Mashiat Sarker Shakkhar [Mon, 21 Nov 2011 19:01:30 +0000 (01:01 +0600)]
Fix some loop conditions to prevent overreads

12 years agoInitialize pred in lms_predict()
Mashiat Sarker Shakkhar [Mon, 21 Nov 2011 18:54:01 +0000 (00:54 +0600)]
Initialize pred in lms_predict()

12 years agoClean-up
Mashiat Sarker Shakkhar [Sat, 12 Nov 2011 11:12:28 +0000 (17:12 +0600)]
Clean-up

12 years agodump_int_buffer() to dump samples from a buffer
Mashiat Sarker Shakkhar [Sat, 12 Nov 2011 13:14:51 +0000 (19:14 +0600)]
dump_int_buffer() to dump samples from a buffer

12 years agoImplement revert_cdlms()
Mashiat Sarker Shakkhar [Sat, 12 Nov 2011 10:07:12 +0000 (16:07 +0600)]
Implement revert_cdlms()

12 years agoDoxy for reset_codec()
Mashiat Sarker Shakkhar [Sat, 12 Nov 2011 10:04:35 +0000 (16:04 +0600)]
Doxy for reset_codec()

12 years agoStore transient state and position of transient area
Mashiat Sarker Shakkhar [Sat, 12 Nov 2011 10:03:54 +0000 (16:03 +0600)]
Store transient state and position of transient area

12 years agoImplement use_high_update_speed() and use_normal_update_speed()
Mashiat Sarker Shakkhar [Thu, 10 Nov 2011 07:42:10 +0000 (13:42 +0600)]
Implement use_high_update_speed() and use_normal_update_speed()

12 years agoInitialize num_logged_tiles and remove unnecessary codes
Mashiat Sarker Shakkhar [Thu, 10 Nov 2011 06:05:42 +0000 (12:05 +0600)]
Initialize num_logged_tiles and remove unnecessary codes

12 years agoLog index for each line of output
Mashiat Sarker Shakkhar [Thu, 10 Nov 2011 06:04:31 +0000 (12:04 +0600)]
Log index for each line of output

12 years agoLog tile size
Mashiat Sarker Shakkhar [Thu, 10 Nov 2011 06:03:51 +0000 (12:03 +0600)]
Log tile size

12 years agoOutput decoded residues
Mashiat Sarker Shakkhar [Tue, 8 Nov 2011 12:42:01 +0000 (18:42 +0600)]
Output decoded residues

12 years agoReplace placeholders with actual calls to clear_codec_buffers() and reset_codec()
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 21:04:12 +0000 (03:04 +0600)]
Replace placeholders with actual calls to clear_codec_buffers() and reset_codec()

12 years agoImplement lms_update()
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 21:02:41 +0000 (03:02 +0600)]
Implement lms_update()

12 years agoImplement lms_predict()
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 21:02:11 +0000 (03:02 +0600)]
Implement lms_predict()

12 years agoImplement reset_codec()
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 21:00:49 +0000 (03:00 +0600)]
Implement reset_codec()

12 years agoAdd missing syntax elements to WmallDecodeCtx
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 20:59:06 +0000 (02:59 +0600)]
Add missing syntax elements to WmallDecodeCtx

12 years agoAdd .recent syntax element to cdlms struct
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 20:32:56 +0000 (02:32 +0600)]
Add .recent syntax element to cdlms struct

12 years agoImplement clear_codec_buffers()
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 20:19:35 +0000 (02:19 +0600)]
Implement clear_codec_buffers()

12 years agoAdd buffers to context necessary for reverting cdmls and mclms filter
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 20:22:21 +0000 (02:22 +0600)]
Add buffers to context necessary for reverting cdmls and mclms filter

12 years agoUse avpriv_copy_bits() instead of ff_copy_bits()
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 19:25:22 +0000 (01:25 +0600)]
Use avpriv_copy_bits() instead of ff_copy_bits()

12 years agoCosmetics
Mashiat Sarker Shakkhar [Thu, 3 Nov 2011 20:50:54 +0000 (02:50 +0600)]
Cosmetics

12 years agoAdd missing ff_ before the AVCodec struct for wmalossless
Mashiat Sarker Shakkhar [Sun, 16 Oct 2011 18:45:10 +0000 (23:45 +0500)]
Add missing ff_ before the AVCodec struct for wmalossless

12 years agowmall: Working bitstream parser
Andreas Öman [Thu, 3 Mar 2011 08:31:34 +0000 (09:31 +0100)]
wmall: Working bitstream parser

12 years agohttpproxy: Fix dependencies
John Stebbins [Sat, 19 Nov 2011 17:58:26 +0000 (09:58 -0800)]
httpproxy: Fix dependencies

Fix building with --disable-network.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttpproxy: Specify the object files needed in the Makefile
Martin Storsjö [Sat, 19 Nov 2011 08:02:15 +0000 (10:02 +0200)]
httpproxy: Specify the object files needed in the Makefile

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