ffmpeg.git
7 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()

7 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>
7 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.

7 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

7 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>
7 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.

7 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.

7 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>
7 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>
7 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.

7 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().

7 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.

7 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.

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

7 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>
7 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>
7 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.

7 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

7 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>
7 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.

7 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>
7 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

7 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

7 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.

7 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

7 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()

7 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

7 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.

7 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.

7 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()

7 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>
7 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>
7 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>
7 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>
7 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

7 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>
7 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

7 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>
7 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.

7 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

7 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()

7 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.

7 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.

7 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

7 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.

7 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()

7 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.

7 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

7 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

7 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>
7 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>
7 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>
7 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>
7 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.

7 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.

7 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

7 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.

7 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>
7 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>
7 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>
7 years agortsp: Set http custom headers via the AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:45:57 +0000 (11:45 +0200)]
rtsp: Set http custom headers via the AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agohttp: Make custom headers settable via an AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:43:13 +0000 (11:43 +0200)]
http: Make custom headers settable via an AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agocrypto: Don't manually free memory allocated via AVOptions
Martin Storsjö [Tue, 8 Nov 2011 22:50:37 +0000 (00:50 +0200)]
crypto: Don't manually free memory allocated via AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavio: Free URLContext private data allocated via AVOptions
Martin Storsjö [Tue, 8 Nov 2011 22:48:40 +0000 (00:48 +0200)]
avio: Free URLContext private data allocated via AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavc: fix memory errors when encoding invalid h264 codecdata
John Brooks [Thu, 10 Nov 2011 03:14:19 +0000 (20:14 -0700)]
avc: fix memory errors when encoding invalid h264 codecdata

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agoavcodec: add support for planar signed 8-bit PCM.
Justin Ruggles [Mon, 31 Oct 2011 17:41:47 +0000 (13:41 -0400)]
avcodec: add support for planar signed 8-bit PCM.

It is found in some 8svx files (e.g. ones created by SoX).
Currently the decoder reuses the 8svx functions because we already have
handling of a single large planar packet for the compressed 8svx codecs.

7 years agora144enc: add sample_fmts list to ff_ra_144_encoder
Justin Ruggles [Tue, 8 Nov 2011 22:47:09 +0000 (17:47 -0500)]
ra144enc: add sample_fmts list to ff_ra_144_encoder

This enables the user (i.e. avconv) to automatically convert to the supported
sample format if needed.

7 years agosmackaud: use uint8_t* for 8-bit output buffer type
Justin Ruggles [Wed, 9 Nov 2011 21:21:08 +0000 (16:21 -0500)]
smackaud: use uint8_t* for 8-bit output buffer type

This matches the output sample format and the range of the output values.

7 years agosmackaud: clip output samples
Justin Ruggles [Wed, 9 Nov 2011 21:20:45 +0000 (16:20 -0500)]
smackaud: clip output samples

7 years agosmackaud: use sign_extend() for difference value instead of casting
Justin Ruggles [Wed, 9 Nov 2011 21:19:52 +0000 (16:19 -0500)]
smackaud: use sign_extend() for difference value instead of casting

7 years agosipr: use a function pointer to select the decode_frame function
Justin Ruggles [Fri, 4 Nov 2011 02:10:15 +0000 (22:10 -0400)]
sipr: use a function pointer to select the decode_frame function

7 years agosipr: set mode based on block_align instead of bit_rate
Justin Ruggles [Sat, 29 Oct 2011 05:20:39 +0000 (01:20 -0400)]
sipr: set mode based on block_align instead of bit_rate

the user is not required to set bit_rate

7 years agosipr: do not needlessly set *data_size to 0 when returning an error
Justin Ruggles [Sat, 29 Oct 2011 04:49:38 +0000 (00:49 -0400)]
sipr: do not needlessly set *data_size to 0 when returning an error

7 years agora288: fix formatting of LOCAL_ALIGNED_16
Justin Ruggles [Wed, 9 Nov 2011 18:45:50 +0000 (13:45 -0500)]
ra288: fix formatting of LOCAL_ALIGNED_16

7 years agoudp: Allow specifying the local IP address
Martin Storsjö [Wed, 9 Nov 2011 09:45:01 +0000 (11:45 +0200)]
udp: Allow specifying the local IP address

This is useful if sending multicast data on a host with
multiple interfaces.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoVC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
shahriman AMS [Tue, 8 Nov 2011 08:51:45 +0000 (08:51 +0000)]
VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agovc1dec: move an if() block.
shahriman AMS [Tue, 8 Nov 2011 08:47:33 +0000 (08:47 +0000)]
vc1dec: move an if() block.

There are no reason for "if (c_valid) { ... }" to appear before
"if (b_valid) { ... }".

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agovc1dec: use correct hybrid prediction threshold.
shahriman AMS [Tue, 8 Nov 2011 08:47:32 +0000 (08:47 +0000)]
vc1dec: use correct hybrid prediction threshold.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agovc1dec: Partial rewrite of vc1_pred_mv()
shahriman AMS [Tue, 8 Nov 2011 08:47:31 +0000 (08:47 +0000)]
vc1dec: Partial rewrite of vc1_pred_mv()

The current code is a generalization of the earlier progressive MV
prediction code. This was supposed to predict MVs for both interlaced
and progressive pictures. But the interlaced MV prediction is buggy
and works mostly by luck.

This partially fixes interlaced MV prediction.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agovc1dec: take ME precision into account while scaling MV predictors.
shahriman AMS [Tue, 8 Nov 2011 08:47:30 +0000 (08:47 +0000)]
vc1dec: take ME precision into account while scaling MV predictors.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavf: don't leak corrupted packets
Andrey Utkin [Tue, 8 Nov 2011 15:24:04 +0000 (17:24 +0200)]
lavf: don't leak corrupted packets

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agotls: Use ERR_get_error() in do_tls_poll
Martin Storsjö [Mon, 7 Nov 2011 09:19:17 +0000 (11:19 +0200)]
tls: Use ERR_get_error() in do_tls_poll

The return value ret isn't an error code that can be passed
to ERR_error_string().

This makes the error messages printed actually contain useful
information.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoindeo3: Fix a fencepost error.
Alex Converse [Tue, 8 Nov 2011 02:46:46 +0000 (18:46 -0800)]
indeo3: Fix a fencepost error.

Found with asan and the venerable 1-dog.avi sample.

7 years agomxfdec: Fix comparison of unsigned expression < 0.
Alex Converse [Mon, 7 Nov 2011 18:14:54 +0000 (10:14 -0800)]
mxfdec: Fix comparison of unsigned expression < 0.

'size' is populated by functions returning int64_t and int that return
negative error codes.

7 years agompegts: set stream id on just created stream, not an unrelated variable
Anton Khirnov [Tue, 8 Nov 2011 13:13:30 +0000 (14:13 +0100)]
mpegts: set stream id on just created stream, not an unrelated variable

Bug introduced in 84ad31ff180fa089cd6bfd93c246336a16036455.
Thanks to Uoti Urpala for finding it.

7 years agora288: return error if input buffer is too small
Justin Ruggles [Fri, 4 Nov 2011 00:41:17 +0000 (20:41 -0400)]
ra288: return error if input buffer is too small

7 years agora288: utilize DSPContext.vector_fmul()
Justin Ruggles [Sat, 29 Oct 2011 04:42:48 +0000 (00:42 -0400)]
ra288: utilize DSPContext.vector_fmul()

7 years agora288: use memcpy() to copy decoded samples to output
Justin Ruggles [Sat, 29 Oct 2011 04:09:03 +0000 (00:09 -0400)]
ra288: use memcpy() to copy decoded samples to output

7 years agomace: only calculate output buffer size once
Justin Ruggles [Sat, 29 Oct 2011 01:27:36 +0000 (21:27 -0400)]
mace: only calculate output buffer size once

7 years agoRemove redundant filename self-references inside files.
Diego Biurrun [Sun, 30 Oct 2011 21:08:47 +0000 (22:08 +0100)]
Remove redundant filename self-references inside files.

Filenames are brittle across renames and add no useful information.

7 years agoindeo3data: add missing config.h #include for HAVE_BIGENDIAN
Diego Biurrun [Tue, 8 Nov 2011 15:06:50 +0000 (16:06 +0100)]
indeo3data: add missing config.h #include for HAVE_BIGENDIAN

7 years agox86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory
Diego Biurrun [Tue, 8 Nov 2011 12:46:18 +0000 (13:46 +0100)]
x86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory

7 years agoavplay: reset rdft when closing stream.
Justin Ruggles [Tue, 8 Nov 2011 15:33:18 +0000 (10:33 -0500)]
avplay: reset rdft when closing stream.

this fixes a crash when cycling audio streams if the spectrograph is
displayed.

7 years agodoc/git-howto: expand format-patch and send-email notes.
Anton Khirnov [Tue, 8 Nov 2011 07:07:51 +0000 (08:07 +0100)]
doc/git-howto: expand format-patch and send-email notes.

7 years agolavf: expand doxy for some AVFormatContext fields.
Anton Khirnov [Sun, 6 Nov 2011 14:16:18 +0000 (15:16 +0100)]
lavf: expand doxy for some AVFormatContext fields.

7 years agoavformat: Avoid a warning about mixed declarations and code
Martin Storsjö [Mon, 7 Nov 2011 21:07:39 +0000 (23:07 +0200)]
avformat: Avoid a warning about mixed declarations and code

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoBMV demuxer and decoder
Kostya Shishkov [Tue, 1 Nov 2011 10:58:44 +0000 (11:58 +0100)]
BMV demuxer and decoder

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agomatroskaenc: Make sure the seekhead struct is freed even on seek failure
Martin Storsjö [Mon, 7 Nov 2011 19:06:01 +0000 (21:06 +0200)]
matroskaenc: Make sure the seekhead struct is freed even on seek failure

The caller expects the seekhead struct to be freed when calling
matroska_write_seekhead. Currently, the structure is leaked if the
seek fails.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agompeg12enc: Remove write-only variables.
Alex Converse [Thu, 3 Nov 2011 23:02:17 +0000 (16:02 -0700)]
mpeg12enc: Remove write-only variables.

7 years agompeg12enc: Don't set up run-level info for level 0.
Alex Converse [Thu, 3 Nov 2011 22:56:37 +0000 (15:56 -0700)]
mpeg12enc: Don't set up run-level info for level 0.

run: The number of zero coefficients preceding a non-zero coefficient,
in the scan order. The absolute value of the non-zero coefficient is
called "level".

The run-level code makes illegal reads when trying to set up tables for
nonsense level 0.