platform/upstream/libav.git
13 years agows_snd: make sure number of channels is 1
Justin Ruggles [Mon, 12 Sep 2011 13:44:21 +0000 (09:44 -0400)]
ws_snd: make sure number of channels is 1

13 years agows_snd: add some checks to prevent buffer overread or overwrite.
Justin Ruggles [Mon, 12 Sep 2011 13:41:06 +0000 (09:41 -0400)]
ws_snd: add some checks to prevent buffer overread or overwrite.

13 years agows_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.
Justin Ruggles [Mon, 12 Sep 2011 12:55:43 +0000 (08:55 -0400)]
ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.

8-bit unsigned is the native sample format.

13 years agoflacdec: fix buffer size checking in get_metadata_size()
Justin Ruggles [Tue, 13 Sep 2011 19:13:44 +0000 (15:13 -0400)]
flacdec: fix buffer size checking in get_metadata_size()

Adds an additional check before reading the next block header and avoids a
potential integer overflow when checking the metadata size against the
remaining buffer size.

13 years agortp: Simplify ff_rtp_get_payload_type
Rafaël Carré [Mon, 26 Sep 2011 15:56:49 +0000 (11:56 -0400)]
rtp: Simplify ff_rtp_get_payload_type

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortpenc: Add a payload type private option
Rafaël Carré [Mon, 26 Sep 2011 15:56:48 +0000 (11:56 -0400)]
rtpenc: Add a payload type private option

Specifying the payload type is useful when the type number has
already been negotiated before creating the stream, for example
in SIP protocol.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortp: Correct ff_rtp_get_payload_type documentation
Rafaël Carré [Mon, 26 Sep 2011 15:56:47 +0000 (11:56 -0400)]
rtp: Correct ff_rtp_get_payload_type documentation

Since 0c378ea1f, it can't fail anymore.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoavconv: replace all fprintf() by av_log().
Anton Khirnov [Tue, 13 Sep 2011 05:31:21 +0000 (07:31 +0200)]
avconv: replace all fprintf() by av_log().

Deprecate -v option, now only -loglevel is enough.

13 years agoavconv: change av_log verbosity from ERROR to FATAL for fatal errors.
Anton Khirnov [Mon, 12 Sep 2011 19:51:02 +0000 (21:51 +0200)]
avconv: change av_log verbosity from ERROR to FATAL for fatal errors.

13 years agocmdutils: replace fprintf() by av_log()
Anton Khirnov [Mon, 26 Sep 2011 06:39:43 +0000 (08:39 +0200)]
cmdutils: replace fprintf() by av_log()

This way, all messages can be easily disabled with -loglevel.

Behavior change -- configuration is printed with AV_LOG_VERBOSE, so it's
not shown by default.

13 years agoavtools: parse loglevel before all the other options.
Anton Khirnov [Mon, 26 Sep 2011 06:15:37 +0000 (08:15 +0200)]
avtools: parse loglevel before all the other options.

This way it can be applied to cmdutils too -- e.g. showing the banner
and printing startup messages.

13 years agooggdec: add support for Xiph's CELT codec
Nicolas George [Mon, 26 Sep 2011 11:19:05 +0000 (13:19 +0200)]
oggdec: add support for Xiph's CELT codec

This patch also introduces CODEC_ID_CELT.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agosol: return error if av_get_packet() fails.
Justin Ruggles [Sat, 24 Sep 2011 01:43:43 +0000 (21:43 -0400)]
sol: return error if av_get_packet() fails.

This prevents sending a packet with data=NULL size=AVERROR_EOF.

13 years agocosmetics: reindent and pretty-print
Justin Ruggles [Mon, 12 Sep 2011 16:18:00 +0000 (12:18 -0400)]
cosmetics: reindent and pretty-print

13 years agolibgsm: split init and close fuctions for encoder and decoder.
Justin Ruggles [Mon, 12 Sep 2011 16:13:05 +0000 (12:13 -0400)]
libgsm: split init and close fuctions for encoder and decoder.

The decoder shouldn't be allocating coded_frame. It's also cleaner to split
them than to check avctx->codec->encode and avctx->codec->decode.

13 years agoppc: fix some pointer to integer casts
Mans Rullgard [Sun, 25 Sep 2011 17:27:47 +0000 (18:27 +0100)]
ppc: fix some pointer to integer casts

Use uintptr_t instead of plain int.  Without this change, the
comparisons will come out wrong for pointers in certain ranges.
Fixes random failures on ppc64.  Also fixes some compiler warnings.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoppc: fix 32-bit PIC build
Mans Rullgard [Sun, 25 Sep 2011 11:53:44 +0000 (12:53 +0100)]
ppc: fix 32-bit PIC build

On 32-bit ppc, the GOT pointer must be loaded manually.
This adds a "get_got" assembler macro to compute the
GOT address.  The "movrel" macro is updated to take an
additional parameter containing the GOT address since
no register is reserved for this purpose on ppc32.
These changes have no effect on ppc64 builds.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agovmdaudio: fix decoding of 16-bit audio format.
Justin Ruggles [Mon, 12 Sep 2011 00:17:54 +0000 (20:17 -0400)]
vmdaudio: fix decoding of 16-bit audio format.

The initial sample of each block is raw 16-bit PCM, not DPCM.
Fixes decoding of all samples in:
http://streams.videolan.org/samples/game-formats/sierra-vmd/Lighthouse/

13 years agolavf: do not set codec_tag for rawvideo
Mans Rullgard [Sun, 17 Jul 2011 15:02:33 +0000 (16:02 +0100)]
lavf: do not set codec_tag for rawvideo

If the demuxer did not set a codec_tag, there is none and
inventing one makes no sense.  This change stops the rawvideo
"decoder" over-writing user-supplied pixfmt with one derived
from the codec_tag.  The pixfmt-codec_tag-pixfmt round-trip
is lossy since several pixfmts map to the same codec_tag.

This fixes fate-lavf-pixfmt with avfilter disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoh264: check for out of bounds reads in ff_h264_decode_extradata().
Laurent Aimar [Sat, 24 Sep 2011 14:16:39 +0000 (16:16 +0200)]
h264: check for out of bounds reads in ff_h264_decode_extradata().

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoflvdec: Check for overflow before allocating arrays
Michael Niedermayer [Sat, 24 Sep 2011 15:57:31 +0000 (18:57 +0300)]
flvdec: Check for overflow before allocating arrays

On allocation, the array length is multiplied by sizeof(int64_t),
this prevents the multiplication from overflowing.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoavconv: use correct output stream index when checking max_frames
Anton Khirnov [Fri, 23 Sep 2011 12:40:29 +0000 (14:40 +0200)]
avconv: use correct output stream index when checking max_frames

13 years agoavconv: remove fake coded_frame on streamcopy hack
Anton Khirnov [Fri, 23 Sep 2011 10:46:05 +0000 (12:46 +0200)]
avconv: remove fake coded_frame on streamcopy hack

Back in 2002 when it was added, some muxers used information from
coded_frame. It's not true anymore, so this hack is useless and can be
removed.

13 years agoflvdec: Fix invalid pointer deferences when parsing index
Laurent Aimar [Sat, 24 Sep 2011 14:16:38 +0000 (16:16 +0200)]
flvdec: Fix invalid pointer deferences when parsing index

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoconfigure: disable hardware capabilities ELF section with suncc on Solaris x86
Sean McGovern [Sat, 17 Sep 2011 04:36:37 +0000 (00:36 -0400)]
configure: disable hardware capabilities ELF section with suncc on Solaris x86

When using suncc to build, the Solaris linker will mark
an executable with each instruction set encountered by
the Solaris assembler.  As our libraries contain their own
guards for processor-specific code, instead suppress
generation of the HWCAPS ELF section on Solaris x86 only.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agoUse explicit struct initializers for AVCodec declarations.
Diego Biurrun [Fri, 23 Sep 2011 19:11:15 +0000 (21:11 +0200)]
Use explicit struct initializers for AVCodec declarations.

13 years agoUse explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
Diego Biurrun [Fri, 23 Sep 2011 18:50:11 +0000 (20:50 +0200)]
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.

13 years agoadpcmenc: Set bits_per_coded_sample
Justin Ruggles [Thu, 8 Sep 2011 02:52:06 +0000 (22:52 -0400)]
adpcmenc: Set bits_per_coded_sample

13 years agoadpcmenc: fix QT IMA ADPCM encoder
Baptiste Coudurier [Thu, 8 Sep 2011 02:27:03 +0000 (22:27 -0400)]
adpcmenc: fix QT IMA ADPCM encoder

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoadpcmdec: Fix QT IMA ADPCM decoder
Baptiste Coudurier [Sun, 8 May 2011 11:13:17 +0000 (13:13 +0200)]
adpcmdec: Fix QT IMA ADPCM decoder

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agopermit decoding of multichannel ADPCM_EA_XAS
Peter Ross [Sat, 23 Apr 2011 12:08:48 +0000 (22:08 +1000)]
permit decoding of multichannel ADPCM_EA_XAS

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoFix input buffer size check in adpcm_ea decoder.
Reimar Döffinger [Thu, 8 Sep 2011 02:14:07 +0000 (22:14 -0400)]
Fix input buffer size check in adpcm_ea decoder.

Unfortunately the output buffer size check assumes that the
input buffer is never over-consumed, thus this actually
also allowed to write outside the output buffer if "lucky".

Based on:
git.videolan.org/ffmpeg.git
commit 701d0eb185192542c4a17f296e39e37cedf7abc6

13 years agofft: avoid a signed overflow
Sean McGovern [Tue, 20 Sep 2011 01:32:09 +0000 (21:32 -0400)]
fft: avoid a signed overflow

As a signed integer, 1<<31 overflows, so force it to unsigned.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years agompegps: Handle buffer exhaustion when reading packets.
Alex Converse [Fri, 23 Sep 2011 23:28:23 +0000 (16:28 -0700)]
mpegps: Handle buffer exhaustion when reading packets.

13 years agortp: factorize dynamic payload type fallback
Rafaël Carré [Fri, 23 Sep 2011 19:47:56 +0000 (15:47 -0400)]
rtp: factorize  dynamic payload type fallback

Move the identical code in rtp_write_header() and
ff_sdp_write_media() inside ff_rtp_get_payload_type()

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agoflvdec: Ignore the index if it's from a creator known to be different
Martin Storsjö [Wed, 21 Sep 2011 13:51:13 +0000 (16:51 +0300)]
flvdec: Ignore the index if it's from a creator known to be different

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agocmdutils: move grow_array out of #if CONFIG_AVFILTER
Janne Grunau [Wed, 21 Sep 2011 12:20:20 +0000 (14:20 +0200)]
cmdutils: move grow_array out of #if CONFIG_AVFILTER

fixes programs linking with --disable-avfilter

13 years agoavconv: actually set InputFile.rate_emu
Anton Khirnov [Thu, 22 Sep 2011 09:10:00 +0000 (11:10 +0200)]
avconv: actually set InputFile.rate_emu

13 years agoratecontrol: update last_qscale_for sooner
Luca Barbato [Fri, 16 Sep 2011 18:06:55 +0000 (20:06 +0200)]
ratecontrol: update last_qscale_for sooner

In order to make ratecontrol converge properly update the
last_qscale_for values when populating the qscale array.

It fixes the issue reported on
http://lists.libav.org/pipermail/libav-tools/2011-September/000050.html

13 years agoFix unnecessary shift with 9/10bit vertical scaling
Kieran Kunhya [Thu, 22 Sep 2011 23:21:05 +0000 (18:21 -0500)]
Fix unnecessary shift with 9/10bit vertical scaling

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoprores: mark prores as intra-only in libavformat/utils.c:is_intra_only()
Diego Biurrun [Thu, 22 Sep 2011 22:10:29 +0000 (00:10 +0200)]
prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()

13 years agoprores: return more meaningful error values
Diego Biurrun [Thu, 22 Sep 2011 21:51:07 +0000 (23:51 +0200)]
prores: return more meaningful error values

13 years agoprores: improve error message wording
Diego Biurrun [Thu, 22 Sep 2011 21:51:06 +0000 (23:51 +0200)]
prores: improve error message wording

13 years agoprores: cosmetics: prettyprinting, drop useless parentheses
Diego Biurrun [Thu, 22 Sep 2011 21:51:05 +0000 (23:51 +0200)]
prores: cosmetics: prettyprinting, drop useless parentheses

13 years agoprores: lowercase AVCodec name entry
Diego Biurrun [Thu, 22 Sep 2011 21:51:04 +0000 (23:51 +0200)]
prores: lowercase AVCodec name entry

All other codecs use lowercase names in that field.

13 years agoAdd LATM demuxer
Janne Grunau [Tue, 6 Sep 2011 20:08:29 +0000 (22:08 +0200)]
Add LATM demuxer

This is a raw demuxer for the AAC LATM decoder and thus limited to
single stream LOAS.

13 years agoavplay: flush audio decoder with empty packets at EOF if the decoder has
Justin Ruggles [Wed, 7 Sep 2011 19:29:53 +0000 (15:29 -0400)]
avplay: flush audio decoder with empty packets at EOF if the decoder has
CODEC_CAP_DELAY set.

13 years ago8svx/iff: fix decoding of compressed stereo 8svx files.
Justin Ruggles [Wed, 7 Sep 2011 19:28:07 +0000 (15:28 -0400)]
8svx/iff: fix decoding of compressed stereo 8svx files.

Make the iff demuxer send the whole audio chunk to the decoder as a
single packet and move stereo interleaving from the iff demuxer to the
decoder.

Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed

13 years ago8svx: log an error message if output buffer is too small
Justin Ruggles [Tue, 6 Sep 2011 22:49:07 +0000 (18:49 -0400)]
8svx: log an error message if output buffer is too small

Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed

13 years ago8svx: check packet size before reading the initial sample value.
Justin Ruggles [Tue, 6 Sep 2011 22:43:55 +0000 (18:43 -0400)]
8svx: check packet size before reading the initial sample value.

13 years ago8svx: output 8-bit samples instead of 16-bit.
Justin Ruggles [Tue, 6 Sep 2011 22:40:06 +0000 (18:40 -0400)]
8svx: output 8-bit samples instead of 16-bit.

Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed

13 years ago8svx: split delta decoding into a separate function.
Justin Ruggles [Tue, 6 Sep 2011 19:13:59 +0000 (15:13 -0400)]
8svx: split delta decoding into a separate function.

Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed

13 years agomp4: Don't read an empty Decoder Config Descriptor
Alex Converse [Wed, 21 Sep 2011 22:26:35 +0000 (15:26 -0700)]
mp4: Don't read an empty Decoder Config Descriptor

13 years agofate.sh: Ignore errors from rm command during cleanup.
Diego Biurrun [Tue, 20 Sep 2011 15:09:45 +0000 (17:09 +0200)]
fate.sh: Ignore errors from rm command during cleanup.

The install directory being deleted might not be present if the build failed.
This can lead to annoying error output if the FATE client is run as a cronjob.

13 years agofate.sh: Run git-pull in quiet mode to avoid console spam.
Diego Biurrun [Tue, 20 Sep 2011 15:09:44 +0000 (17:09 +0200)]
fate.sh: Run git-pull in quiet mode to avoid console spam.

Since fate.sh can be run from cron, silent commands are preferrable.

13 years agoApple ProRes decoder
Maxim Poliakovski [Wed, 21 Sep 2011 11:09:32 +0000 (13:09 +0200)]
Apple ProRes decoder

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortmp: Make the input FLV parser handle data cut at any point
Martin Storsjö [Wed, 21 Sep 2011 20:21:30 +0000 (23:21 +0300)]
rtmp: Make the input FLV parser handle data cut at any point

This makes the RTMP writing code able to handle FLV data
fed in arbitrarily small or large chunks, with multiple
consecutive packets in one write call, or having the FLV
packet header split over numerous write calls.

When used in conjunction with the flv muxer, the AVIO buffer
size still needs to be large enough to fit the initial metadata
packet though, since the size of that packet is written with a
seekback.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agorv34: Check for invalid slices offsets
Laurent Aimar [Wed, 21 Sep 2011 18:46:31 +0000 (20:46 +0200)]
rv34: Check for invalid slices offsets

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoeval: test isnan(sqrt(-1)) instead of just sqrt(-1)
Anton Khirnov [Wed, 21 Sep 2011 18:25:19 +0000 (20:25 +0200)]
eval: test isnan(sqrt(-1)) instead of just sqrt(-1)

sqrt(-1) returns "some NaN", it's not specified which exactly.

13 years agoswfdec: Add support for sample_rate_code 0 (5512 Hz)
Alex Converse [Wed, 21 Sep 2011 01:40:43 +0000 (18:40 -0700)]
swfdec: Add support for sample_rate_code 0 (5512 Hz)

13 years agodct-test: factor out some common code and do whas was likely intended
Mans Rullgard [Wed, 21 Sep 2011 14:23:34 +0000 (15:23 +0100)]
dct-test: factor out some common code and do whas was likely intended

This fixes some nonsensical code by moving some should-be-shared
code to separate functions and using these.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodoc: library versions need to be bumped in version.h
Diego Biurrun [Wed, 21 Sep 2011 12:57:29 +0000 (14:57 +0200)]
doc: library versions need to be bumped in version.h

13 years agoRevert "ffmpeg: get rid of useless AVInputStream.nb_streams."
Anton Khirnov [Sun, 11 Sep 2011 10:27:51 +0000 (12:27 +0200)]
Revert "ffmpeg: get rid of useless AVInputStream.nb_streams."

This reverts commit 2cf8355f98681bdd726b739008acd5483f82f8d7.
AVInputStream.nb_streams tracks number of streams found at the
beginning, new streams may appear that ffmpeg doesn't know about. Fixes
crash in this case.

13 years agoRemove some forgotten AVCodecContext.palctrl usage.
Anton Khirnov [Thu, 1 Sep 2011 15:01:53 +0000 (17:01 +0200)]
Remove some forgotten AVCodecContext.palctrl usage.

13 years agolavc/utils: move avcodec_init() higher in the file.
Anton Khirnov [Thu, 1 Sep 2011 14:59:35 +0000 (16:59 +0200)]
lavc/utils: move avcodec_init() higher in the file.

Fixes build on next major bump.

13 years agolavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
Anton Khirnov [Thu, 1 Sep 2011 14:57:20 +0000 (16:57 +0200)]
lavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*

13 years agoac3dec: actually use drc_scale private option
Anton Khirnov [Thu, 1 Sep 2011 14:48:29 +0000 (16:48 +0200)]
ac3dec: actually use drc_scale private option

13 years agolavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros
Anton Khirnov [Thu, 1 Sep 2011 14:40:18 +0000 (16:40 +0200)]
lavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros

They are still being used and shouldn't be removed.

13 years agoalsa: add missing header
Anton Khirnov [Thu, 1 Sep 2011 14:31:02 +0000 (16:31 +0200)]
alsa: add missing header

Fixes compile with next lavc major.

13 years agomsmpeg4: remove leftover unused debug variable declaration
Diego Biurrun [Tue, 20 Sep 2011 07:10:41 +0000 (09:10 +0200)]
msmpeg4: remove leftover unused debug variable declaration

13 years agoFix assert() calls that need updates after FF_COMMON_FRAME macro elimination.
Diego Biurrun [Tue, 13 Sep 2011 15:00:41 +0000 (17:00 +0200)]
Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.

This fixes build failures with -DDEBUG in CPPFLAGS.

13 years agoFix av_dlog invocations with wrong or missing logging context.
Diego Biurrun [Tue, 13 Sep 2011 15:00:16 +0000 (17:00 +0200)]
Fix av_dlog invocations with wrong or missing logging context.

This fixes build failures with -DDEBUG in CPPFLAGS.

13 years agovf_yadif: add support to yuva420p
Stefano Sabatini [Sat, 27 Aug 2011 16:32:14 +0000 (18:32 +0200)]
vf_yadif: add support to yuva420p

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovf_yadif: correct documentation on the parity parameter
Stefano Sabatini [Wed, 3 Aug 2011 22:25:35 +0000 (00:25 +0200)]
vf_yadif: correct documentation on the parity parameter

0 is top-field-first, 1 is bottom-field-first, not the other way
around.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovf_yadif: copy buffer properties like aspect for second frame as well
Joakim Plate [Thu, 14 Jul 2011 20:31:37 +0000 (22:31 +0200)]
vf_yadif: copy buffer properties like aspect for second frame as well

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agooma: support for encrypted files
David Goldwich [Sun, 18 Sep 2011 19:58:09 +0000 (21:58 +0200)]
oma: support for encrypted files

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoid3v2: add support for non-text and GEOB type tag frames
David Goldwich [Sun, 18 Sep 2011 16:04:34 +0000 (18:04 +0200)]
id3v2: add support for non-text and GEOB type tag frames

This extends the ID3v2 parser to allow for reading of non-text (i.e.
other than T***) meta tag frames providing a ff_id3v2_read_all()
function. An additional data structure 'ID3v2ExtraMeta' is introduced
for these tags since AVDictionary is string oriented and unsuitable
for binary data.

A parser for tag frames of type GEOB is implemented, which is needed
to extract keyring information from encrypted OMA files. GEOB data
is parsed into 'ID3v2ExtraMetaGEOB' data structures.

The routine to decode characters from different encodings to UTF-8,
formerly part of the read_ttag() function, is moved to its own
function. Because some tag frames contain subparts of unknown length,
the function is now also able to read until a null character is found.
In addition, the function now takes care of allocating a buffer long
enough to hold the decoded characters.

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agodes: add possibility to calculate DES-CBC-MAC with small buffer
David Goldwich [Fri, 2 Sep 2011 06:20:58 +0000 (08:20 +0200)]
des: add possibility to calculate DES-CBC-MAC with small buffer

This patch adds the possibility to calculate the DES-CBC-MAC of a
source buffer (i.e. the last block of the buffer encrypted in CBC
mode) without having to allocate a destination buffer that is as
long as the complete source buffer, but instead only 8 bytes
for the MAC.

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agortmp: Don't blindly skip the 4 trailer bytes from the FLV packets
Martin Storsjö [Tue, 20 Sep 2011 13:00:52 +0000 (16:00 +0300)]
rtmp: Don't blindly skip the 4 trailer bytes from the FLV packets

If not enough bytes are available, keep track of them and skip
them on next call.

In practice, if these trailer bytes are written in a separate
call, there is no other data written in this call, making it
fall into the "FLV packet too small" case currently - working,
but not as intended.

This patch makes the code more robust, handling all cases
except for having the FLV packet header split over multiple
write calls.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortmp: Handle FLV packets written in more than one write call
Chiranjeevi Melam [Sun, 18 Sep 2011 03:39:53 +0000 (05:39 +0200)]
rtmp: Handle FLV packets written in more than one write call

If the FLV packet is larger than the AVIO buffer, a partial
FLV packet will be flushed to the RTMP protocol.

This commit handles the most common cases of FLV packets
being written in more than one call.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agorv34: Check for invalid slice offsets
Laurent Aimar [Mon, 19 Sep 2011 20:48:53 +0000 (22:48 +0200)]
rv34: Check for invalid slice offsets

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agomovenc: fix NULL reference in mov_write_tkhd_tag
Anton Khirnov [Mon, 19 Sep 2011 13:15:56 +0000 (15:15 +0200)]
movenc: fix NULL reference in mov_write_tkhd_tag

st may be NULL when there are more mov streams than AVStreams, e.g. when
chapters are present.

13 years agormdec: Reject invalid deinterleaving parameters
Laurent Aimar [Fri, 16 Sep 2011 22:05:13 +0000 (00:05 +0200)]
rmdec: Reject invalid deinterleaving parameters

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agorv34: Fix potential overreads
Laurent Aimar [Sat, 17 Sep 2011 14:56:30 +0000 (16:56 +0200)]
rv34: Fix potential overreads

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agorv34: Fix buffer size used for MC of B frames after a resolution change
Laurent Aimar [Sat, 17 Sep 2011 14:56:36 +0000 (16:56 +0200)]
rv34: Fix buffer size used for MC of B frames after a resolution change

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agorv34: Avoid NULL dereference on corrupted bitstream
Laurent Aimar [Sat, 17 Sep 2011 21:43:58 +0000 (23:43 +0200)]
rv34: Avoid NULL dereference on corrupted bitstream

rv34_decode_slice() can return without allocating any pictures.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agorv10: Reject slices that does not have the same type as the first one
Laurent Aimar [Sat, 17 Sep 2011 22:03:08 +0000 (00:03 +0200)]
rv10: Reject slices that does not have the same type as the first one

This prevents crashes with some corrupted bitstreams.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agovf_yadif: add an option to enable/disable deinterlacing based on src frame "interlace...
Joakim Plate [Sun, 3 Jul 2011 11:19:44 +0000 (13:19 +0200)]
vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag

Signed-off-by: Joakim Plate <elupus@ecce.se>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_color: set output pos values to -1
Stefano Sabatini [Fri, 17 Jun 2011 23:47:37 +0000 (01:47 +0200)]
vsrc_color: set output pos values to -1

-1 is more correct than 0, as the position in the file is undefined.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_color: add @file doxy
Stefano Sabatini [Fri, 17 Jun 2011 23:46:27 +0000 (01:46 +0200)]
vsrc_color: add @file doxy

Also remove outdated reference to color in vf_pad.c.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_buffer: remove duplicated file description
Stefano Sabatini [Wed, 25 May 2011 07:37:25 +0000 (09:37 +0200)]
vsrc_buffer: remove duplicated file description

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoeval: implement not() expression
Stefano Sabatini [Mon, 23 May 2011 11:13:50 +0000 (13:13 +0200)]
eval: implement not() expression

13 years agoeval: add sqrt function for computing the square root
Stefano Sabatini [Tue, 3 May 2011 21:31:14 +0000 (23:31 +0200)]
eval: add sqrt function for computing the square root

13 years agormdec: use the deinterleaving mode and not the codec when creating audio packets.
Laurent Aimar [Sat, 17 Sep 2011 21:17:45 +0000 (21:17 +0000)]
rmdec: use the deinterleaving mode and not the codec when creating audio packets.

It prevents crashes due to non initialized fields.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavf: Fix context pointer in av_open_input_stream when avformat_open_input fails
David Goldwich [Sat, 17 Sep 2011 11:50:35 +0000 (13:50 +0200)]
lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agodoc/APIChanges: fill in missing hashes and dates.
Anton Khirnov [Sun, 18 Sep 2011 06:55:01 +0000 (08:55 +0200)]
doc/APIChanges: fill in missing hashes and dates.

13 years agolavfi: add select filter
Stefano Sabatini [Sat, 7 May 2011 00:06:25 +0000 (02:06 +0200)]
lavfi: add select filter

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agooggdec: fix out of bound write in the ogg demuxer
Laurent Aimar [Sun, 11 Sep 2011 21:26:12 +0000 (23:26 +0200)]
oggdec: fix out of bound write in the ogg demuxer

Between ogg_save() and ogg_restore() calls, the number of streams
could have been reduced.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years agomovenc: create an alternate group for each media type
Anton Khirnov [Fri, 16 Sep 2011 14:06:45 +0000 (16:06 +0200)]
movenc: create an alternate group for each media type

Partially fixes bug 44.

13 years agolavd: add libcdio-paranoia input device for audio CD grabbing
Anton Khirnov [Tue, 13 Sep 2011 15:23:06 +0000 (17:23 +0200)]
lavd: add libcdio-paranoia input device for audio CD grabbing