platform/upstream/libav.git
13 years agoshorten: skip some fields in the WAV header embedded in the shorten header.
Justin Ruggles [Wed, 14 Sep 2011 19:20:22 +0000 (15:20 -0400)]
shorten: skip some fields in the WAV header embedded in the shorten header.

fixes incorrect bitrate reporting and potential misreporting of the number of
channels.

13 years agoshorten: split reading of file header into a separate functions
Justin Ruggles [Wed, 14 Sep 2011 19:02:35 +0000 (15:02 -0400)]
shorten: split reading of file header into a separate functions

13 years agoavformat: do not require frame_size for Speex.
Justin Ruggles [Wed, 19 Oct 2011 18:00:06 +0000 (14:00 -0400)]
avformat: do not require frame_size for Speex.

Having it there forces decoding of a frame in order to get frame_size, but it
is not really needed for proper demuxing or decoding.

13 years agoogg/speex: set correct timestamp and duration for the first packet.
Justin Ruggles [Wed, 19 Oct 2011 17:28:12 +0000 (13:28 -0400)]
ogg/speex: set correct timestamp and duration for the first packet.

The first timestamp should be negative due to delay.
Also, do not set AVCodecContext.frame_size unnecessarily.

13 years agoflvenc: check packet duration in speex using timestamps
Justin Ruggles [Wed, 19 Oct 2011 17:20:15 +0000 (13:20 -0400)]
flvenc: check packet duration in speex using timestamps

Using AVCodecContext.frame_size is not reliable.

13 years agolibspeexenc: add libspeex encoder
Justin Ruggles [Tue, 18 Oct 2011 19:16:27 +0000 (12:16 -0700)]
libspeexenc: add libspeex encoder

13 years agoflvenc: adjust for negative DTS for all codecs, not just H.264
Justin Ruggles [Wed, 19 Oct 2011 17:16:01 +0000 (13:16 -0400)]
flvenc: adjust for negative DTS for all codecs, not just H.264

13 years agox86: Move some variable declarations below the appropriat #ifdef.
Diego Biurrun [Thu, 20 Oct 2011 13:43:16 +0000 (15:43 +0200)]
x86: Move some variable declarations below the appropriat #ifdef.

This avoids some unused variable warnings with YASM disabled.

13 years agox86: Fix linking of ProRes DSP ASM with YASM disabled.
Diego Biurrun [Thu, 20 Oct 2011 13:59:22 +0000 (15:59 +0200)]
x86: Fix linking of ProRes DSP ASM with YASM disabled.

13 years agoavcodec.h: Move G.729/G.723 CODEC_IDs to the correct section.
Diego Biurrun [Wed, 19 Oct 2011 21:12:56 +0000 (23:12 +0200)]
avcodec.h: Move G.729/G.723 CODEC_IDs to the correct section.

This is done conditional to the libavcodec version to avoid ABI breaks.

13 years agoOnly test-compile w32pthreads.h if W32THREADS are available.
Diego Biurrun [Wed, 19 Oct 2011 21:25:01 +0000 (23:25 +0200)]
Only test-compile w32pthreads.h if W32THREADS are available.

This fixes 'make checkheaders' on non-W32THREADS systems.

13 years agopresets: rename presets directory
Janne Grunau [Wed, 19 Oct 2011 06:22:23 +0000 (08:22 +0200)]
presets: rename presets directory

13 years agolavc: make avcodec_get_context_defaults3 "officially" public
Anton Khirnov [Sat, 8 Oct 2011 06:47:47 +0000 (08:47 +0200)]
lavc: make avcodec_get_context_defaults3 "officially" public

Deprecate avcodec_get_context_defaults/avcodec_get_context_defaults2

13 years agolavf: replace av_new_stream->avformat_new_stream part II.
Anton Khirnov [Sat, 18 Jun 2011 09:43:24 +0000 (11:43 +0200)]
lavf: replace av_new_stream->avformat_new_stream part II.

Manual replacements are done in this commit.

In many cases, the id is some constant made up number (e.g. 0 for video
and 1 for audio), which is then not used in the demuxer for anything.
Those ids are removed.

13 years agolavf,lavd: replace av_new_stream->avformat_new_stream part I.
Anton Khirnov [Sat, 18 Jun 2011 09:43:24 +0000 (11:43 +0200)]
lavf,lavd: replace av_new_stream->avformat_new_stream part I.

Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'

13 years agolavf: add avformat_new_stream as a replacement for av_new_stream.
Anton Khirnov [Sat, 18 Jun 2011 09:19:27 +0000 (11:19 +0200)]
lavf: add avformat_new_stream as a replacement for av_new_stream.

It takes a codec parameter, thus enabling codec-specific defaults.

13 years agoUse correct scaling table for bwd-pred MVs in second B-field
Mashiat Sarker Shakkhar [Wed, 19 Oct 2011 13:51:20 +0000 (18:51 +0500)]
Use correct scaling table for bwd-pred MVs in second B-field

When scaling backward predicted MVs in second B-field, the scaling table is
opposite of that for P field pictures; i.e. first field P table will be used as
second field B table and second field P table will be used as first field B
table. This is not documented in the spec, but exists in the ref. decoder.

This fixes SA10139.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoUt Video decoder
Kostya Shishkov [Sun, 16 Oct 2011 15:20:17 +0000 (17:20 +0200)]
Ut Video decoder

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoMakefile: change presets extension to .avpreset
Anton Khirnov [Wed, 19 Oct 2011 05:50:12 +0000 (07:50 +0200)]
Makefile: change presets extension to .avpreset

Fixes make install.

13 years agolavfi: add rgbtestsrc source, ported from MPlayer libmpcodecs
Stefano Sabatini [Mon, 11 Jul 2011 14:27:09 +0000 (16:27 +0200)]
lavfi: add rgbtestsrc source, ported from MPlayer libmpcodecs

The licence was changed from GPL to LGPL with explicit approval from
the original author.

See thread:
Subject: [FFmpeg-devel] [PATCH] lavfi: add rgbtestsrc source,
        ported from MPlayer libmpcodecs
Date: Mon, 11 Jul 2011 16:32:41 +0200

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavfi: add testsrc source
Stefano Sabatini [Sat, 18 Jun 2011 01:11:16 +0000 (03:11 +0200)]
lavfi: add testsrc source

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoAVOptions: add documentation.
Anton Khirnov [Mon, 5 Sep 2011 16:16:13 +0000 (18:16 +0200)]
AVOptions: add documentation.

13 years agopresets: update libx264 ffpresets
Anton Khirnov [Thu, 13 Oct 2011 06:21:45 +0000 (08:21 +0200)]
presets: update libx264 ffpresets

Use the native libx264 options and rename all the preset to use
the avpreset extension.

13 years agosunrast: Check for out of bounds reads
Laurent Aimar [Tue, 27 Sep 2011 22:15:32 +0000 (22:15 +0000)]
sunrast: Check for out of bounds reads

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agolavc: rename AV_ER_* options to AV_EF_* and rename AGGRESSIVE to BUFFER
Dustin Brody [Mon, 17 Oct 2011 01:22:03 +0000 (21:22 -0400)]
lavc: rename AV_ER_* options to AV_EF_* and rename AGGRESSIVE to BUFFER

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavc: replace API-bump-triggered AVCodecContext field change with shorter, non-confli...
Dustin Brody [Mon, 17 Oct 2011 01:22:02 +0000 (21:22 -0400)]
lavc: replace API-bump-triggered AVCodecContext field change with shorter, non-conflicting name

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoAdd libvpx presets.
Anton Khirnov [Tue, 11 Oct 2011 13:56:40 +0000 (15:56 +0200)]
Add libvpx presets.

Based on a patch by James Zern jzern AT google DOT com

13 years agodoc/avtools: add forgotten part to stream specifiers description
Anton Khirnov [Tue, 11 Oct 2011 13:17:36 +0000 (15:17 +0200)]
doc/avtools: add forgotten part to stream specifiers description

13 years agoswscale: prevent overflow during initialization
Ronald Bultje [Tue, 18 Oct 2011 01:53:04 +0000 (01:53 +0000)]
swscale: prevent overflow during initialization

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agog722: Add a fate test for the encoder
Martin Storsjö [Thu, 9 Sep 2010 07:02:32 +0000 (10:02 +0300)]
g722: Add a fate test for the encoder

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agofate: Add a target for creating a 16000 Hz mono synthetic audio file
Martin Storsjö [Mon, 17 Oct 2011 20:03:49 +0000 (23:03 +0300)]
fate: Add a target for creating a 16000 Hz mono synthetic audio file

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agomacosx: use the default surface on newer sdl
Luca Barbato [Mon, 17 Oct 2011 05:31:53 +0000 (22:31 -0700)]
macosx: use the default surface on newer sdl

SDL 1.2.14 works fine with default colorspace on macosx and seems
to have some issues with 24bit surfaces and resize in addition.

13 years agoavconv: add presets
Alexandra Khirnova [Mon, 10 Oct 2011 10:52:13 +0000 (11:52 +0100)]
avconv: add presets

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agortsp: Expose the flag options via private AVOptions for sdp and rtp, too
Martin Storsjö [Mon, 17 Oct 2011 17:07:56 +0000 (20:07 +0300)]
rtsp: Expose the flag options via private AVOptions for sdp and rtp, too

This allows setting the filter_src option for these demuxers, too,
which wasn't possible at all before (where the option only was set
via URL parameters for RTSP).

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortsp: Make the rtsp flags avoptions set via a define
Martin Storsjö [Mon, 17 Oct 2011 17:04:41 +0000 (20:04 +0300)]
rtsp: Make the rtsp flags avoptions set via a define

This helps sharing these options with the sdp and rtp demuxers.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortpenc: Set a default video codec
Martin Storsjö [Mon, 17 Oct 2011 18:11:07 +0000 (21:11 +0300)]
rtpenc: Set a default video codec

avconv doesn't map video streams to a muxer without specifying a
manual stream mapping if the default video codec is CODEC_ID_NONE.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoavoptions: Fix av_opt_flag_is_set
Martin Storsjö [Mon, 17 Oct 2011 17:50:02 +0000 (20:50 +0300)]
avoptions: Fix av_opt_flag_is_set

With the changes in 3b3ea34655db02d9cd9ea1a4122e920a7fdec602,
"Remove all uses of deprecated AVOptions API", av_opt_flag_is_set
was broken, since it now uses av_opt_find, which doesn't return
named constants unless a unit to look for the constant in is given.

This broke enabling LATM encapsulated AAC output in RTP.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortp: Fix ff_rtp_get_payload_type
Martin Storsjö [Mon, 17 Oct 2011 17:24:54 +0000 (20:24 +0300)]
rtp: Fix ff_rtp_get_payload_type

It was broken in 3b3ea34655db02d9cd9ea1a4122e920a7fdec602
"Remove all uses of deprecated AVOptions API", where any
presence of a payload_type AVOption caused its value to
be returned, even if it wasn't set (and thus had the default
-1 value).

This caused the RTP muxer to be broken.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agodoc: Update the documentation on setting options for RTSP
Martin Storsjö [Wed, 12 Oct 2011 15:27:18 +0000 (18:27 +0300)]
doc: Update the documentation on setting options for RTSP

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortsp: Remove the separate filter_source variable
Martin Storsjö [Thu, 23 Jun 2011 22:55:00 +0000 (01:55 +0300)]
rtsp: Remove the separate filter_source variable

Read it as a flag from the flags field instead.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortsp: Accept options via private avoptions instead of URL options
Martin Storsjö [Thu, 23 Jun 2011 22:49:09 +0000 (01:49 +0300)]
rtsp: Accept options via private avoptions instead of URL options

Eventually, the old way of passing options by adding
stuff to the URL can be dropped.

This avoids having to tamper with the user-specified URL to
pass options on the transport mode. This also works better
with redirects, since the options don't need to be parsed out
from the URL.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortsp: Simplify AVOption definitions
Martin Storsjö [Thu, 13 Oct 2011 11:00:06 +0000 (14:00 +0300)]
rtsp: Simplify AVOption definitions

Use defines for shortening common parts, omit the .dbl named
initializer (since it's the first element in the union).

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortsp: Merge the AVOption lists
Martin Storsjö [Thu, 23 Jun 2011 23:04:54 +0000 (02:04 +0300)]
rtsp: Merge the AVOption lists

This eases adding options that are common for both. The
AV_OPT_FLAG_EN/DECODING_PARAM still indicates whether they belong
to the muxer or demuxer.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolavfi: port libmpcodecs delogo filter
Stefano Sabatini [Wed, 10 Aug 2011 16:58:49 +0000 (18:58 +0200)]
lavfi: port libmpcodecs delogo filter

The ported filter supports named option parsing and more YUV formats.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavfi: port boxblur filter from libmpcodecs
Stefano Sabatini [Sat, 9 Jul 2011 16:13:10 +0000 (18:13 +0200)]
lavfi: port boxblur filter from libmpcodecs

With the following additions:
* support to gray format
* support to yuva420p format
* parametric luma/chroma/alpha radius
* consistency check on the radius values, avoid crashes with invalid values

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavfi: add negate filter
Stefano Sabatini [Sat, 28 May 2011 20:00:26 +0000 (22:00 +0200)]
lavfi: add negate filter

This filter is a simple wrapper around the LUT filter.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavfi: add LUT (LookUp Table) generic filters
Stefano Sabatini [Sat, 28 May 2011 19:51:03 +0000 (21:51 +0200)]
lavfi: add LUT (LookUp Table) generic filters

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoAVOptions: don't segfault on NULL parameter in av_set_options_string()
Anton Khirnov [Sat, 1 Oct 2011 12:42:53 +0000 (14:42 +0200)]
AVOptions: don't segfault on NULL parameter in av_set_options_string()

13 years agoavio: Check for invalid buffer length.
Alex Converse [Sat, 15 Oct 2011 01:27:59 +0000 (18:27 -0700)]
avio: Check for invalid buffer length.

13 years agompegenc/mpegtsenc: add muxrate private options.
Anton Khirnov [Sun, 9 Oct 2011 12:40:11 +0000 (14:40 +0200)]
mpegenc/mpegtsenc: add muxrate private options.

Deprecate AVFormatContext.mux_rate.

13 years agolavf: deprecate AVFormatContext.file_size
Anton Khirnov [Sun, 9 Oct 2011 12:12:14 +0000 (14:12 +0200)]
lavf: deprecate AVFormatContext.file_size

It's too unreliable to be useful. avio_size() should be called instead.

13 years agomov: add support for TV metadata atoms tves, tvsn and stik
Raivo Hool [Fri, 14 Oct 2011 17:14:18 +0000 (20:14 +0300)]
mov: add support for TV metadata atoms tves, tvsn and stik

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agow32threads: support for frame multithreading
Steven Walters [Sun, 9 Oct 2011 19:38:35 +0000 (21:38 +0200)]
w32threads: support for frame multithreading

Replace our incomplete w32threads implementation with x264's pthreads
w32threads wrapper.
Relicensed to LGPL with kind permission by Pegasys Inc.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agoavcodec: remove stray @deprecated comment
Mans Rullgard [Sun, 16 Oct 2011 15:16:55 +0000 (16:16 +0100)]
avcodec: remove stray @deprecated comment

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoprores: get correct size for coded V plane if alpha is present
Mans Rullgard [Sat, 15 Oct 2011 13:35:49 +0000 (14:35 +0100)]
prores: get correct size for coded V plane if alpha is present

The size check must be updated to take into account both manners
in which v_data_size might be set.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoprores: do not set pixel format on codec init
Mans Rullgard [Sat, 15 Oct 2011 13:35:10 +0000 (14:35 +0100)]
prores: do not set pixel format on codec init

The pixel format is not known until the frame header is parsed.
Guessing it here only causes trouble for the caller if the guess
turns out to be wrong (and actually causes very wrong output by
avconv/avplay).

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agopthread: prevent updating AVCodecContext from itself in frame_thread_free
Ronald S. Bultje [Fri, 14 Oct 2011 21:47:45 +0000 (23:47 +0200)]
pthread: prevent updating AVCodecContext from itself in frame_thread_free

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agopthread: copy coded frame dimensions in update_context_from_thread
Ronald S. Bultje [Fri, 14 Oct 2011 21:46:06 +0000 (23:46 +0200)]
pthread: copy coded frame dimensions in update_context_from_thread

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agovp8: prevent read from uninitialized memory in decode_mvs
Ronald S. Bultje [Fri, 14 Oct 2011 21:43:29 +0000 (23:43 +0200)]
vp8: prevent read from uninitialized memory in decode_mvs

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agovp8: force reallocation in update_thread_context after frame size change
Ronald S. Bultje [Fri, 14 Oct 2011 21:27:52 +0000 (23:27 +0200)]
vp8: force reallocation in update_thread_context after frame size change

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agovp8: fix return value if update_dimensions fails
Ronald S. Bultje [Fri, 14 Oct 2011 21:21:46 +0000 (23:21 +0200)]
vp8: fix return value if update_dimensions fails

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agomatroskadec: fix out of bounds write
Ronald S. Bultje [Fri, 14 Oct 2011 22:03:55 +0000 (00:03 +0200)]
matroskadec: fix out of bounds write

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agoadpcmdec: calculate actual number of output samples for each decoder.
Justin Ruggles [Sun, 2 Oct 2011 14:18:17 +0000 (10:18 -0400)]
adpcmdec: calculate actual number of output samples for each decoder.

This also allows for removing some of the buf_size checks and using the
sample count for some of the decoding loops.

13 years agoadpcmdec: check remaining buffer size before decoding next block in the
Justin Ruggles [Sun, 2 Oct 2011 20:07:55 +0000 (16:07 -0400)]
adpcmdec: check remaining buffer size before decoding next block in the
ADPCM IMA WAV decoder.

13 years agoadpcmdec: do not terminate early in ADPCM IMA Duck DK3 decoder.
Justin Ruggles [Sun, 2 Oct 2011 19:58:54 +0000 (15:58 -0400)]
adpcmdec: do not terminate early in ADPCM IMA Duck DK3 decoder.

There are still 2 nibbles to decode once the last byte in the packet has been
read. Updated FATE reference.

13 years agoadpcmdec: remove unneeded buf_size==0 check.
Justin Ruggles [Sun, 2 Oct 2011 18:43:28 +0000 (14:43 -0400)]
adpcmdec: remove unneeded buf_size==0 check.

This is already done by avcodec_decode_audio3()

13 years agoadpcmdec: remove unneeded zeroing of *data_size
Justin Ruggles [Sun, 2 Oct 2011 18:41:34 +0000 (14:41 -0400)]
adpcmdec: remove unneeded zeroing of *data_size

13 years agodnxhdenc: fixed signed multiplication overflow
Mans Rullgard [Sat, 8 Oct 2011 00:37:20 +0000 (01:37 +0100)]
dnxhdenc: fixed signed multiplication overflow

The low 32 bits of a multiplication are the same for signed
and unsigned operands.  Casting to unsigned before multiplying
is thus equivalent while avoiding signed overflow, which is
undefined by the C99 standard.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoproresdsp: fix function prototypes.
Ronald S. Bultje [Fri, 14 Oct 2011 16:28:46 +0000 (09:28 -0700)]
proresdsp: fix function prototypes.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agoprores-idct: fix overflow in c code.
Ronald S. Bultje [Fri, 14 Oct 2011 16:27:59 +0000 (09:27 -0700)]
prores-idct: fix overflow in c code.

Fix the fate ref for prores-422_proxy by reverting the changes to it
in commit f492df0927c42da174edb674857670fc50abc5dc

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agofate: update prores-alpha ref after changing pix_fmt to yuv444p10le
Janne Grunau [Fri, 14 Oct 2011 19:20:46 +0000 (21:20 +0200)]
fate: update prores-alpha ref after changing pix_fmt to yuv444p10le

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agoprores: add missing feature warning for alpha
Janne Grunau [Fri, 14 Oct 2011 10:18:23 +0000 (12:18 +0200)]
prores: add missing feature warning for alpha

13 years agomov: 10l: Terminate string with 0 not '0'
Alex Converse [Fri, 14 Oct 2011 17:38:42 +0000 (10:38 -0700)]
mov: 10l: Terminate string with 0 not '0'

13 years agomov: Prevent illegal writes when chapter titles are very short.
Alex Converse [Thu, 13 Oct 2011 21:47:06 +0000 (14:47 -0700)]
mov: Prevent illegal writes when chapter titles are very short.

13 years agoprores: add appropriate -fix_fmt parameter to FATE command
Diego Biurrun [Fri, 14 Oct 2011 14:11:32 +0000 (16:11 +0200)]
prores: add appropriate -fix_fmt parameter to FATE command

Also correct CRCs for Sequence_1-Apple_ProRes_422_Proxy.mov, previous
CRCs were generated with the non-bitexact x86_64 assembler IDCT.

13 years agoriff: always generate a proper WAVEFORMATEX structure in ff_put_wav_header
John Brooks [Thu, 13 Oct 2011 08:34:20 +0000 (08:34 +0000)]
riff: always generate a proper WAVEFORMATEX structure in ff_put_wav_header

The cbSize field should be included in all cases, even with PCM where
its value is ignored.

Fixes encoding PCM audio in Matroska for some players which insist on
a full WAVEFORMATEX structure for A_MS/ACM audio.

Since fate uses wav files for the audio test a larger number of tests
has changed checksums or shifted positions due to the 2 byte longer
wave header.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years agolavc: add a flag-based error_recognition field to AVCodecContext and deprecate non...
Dustin Brody [Thu, 13 Oct 2011 07:26:53 +0000 (03:26 -0400)]
lavc: add a flag-based error_recognition field to AVCodecContext and deprecate non-flag-based ER field

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavc: rename deprecation symbol FF_API_VERY_AGGRESSIVE to FF_API_ER
Dustin Brody [Thu, 13 Oct 2011 07:26:27 +0000 (03:26 -0400)]
lavc: rename deprecation symbol FF_API_VERY_AGGRESSIVE to FF_API_ER

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoprores: add FATE tests
Diego Biurrun [Fri, 23 Sep 2011 00:06:23 +0000 (02:06 +0200)]
prores: add FATE tests

13 years agoid3v2: reduce the scope of some non-globally-used symbols/structures
Diego Biurrun [Mon, 10 Oct 2011 13:51:02 +0000 (15:51 +0200)]
id3v2: reduce the scope of some non-globally-used symbols/structures

13 years agoid3v2: cosmetics: move some declarations before the places they are used
Diego Biurrun [Mon, 10 Oct 2011 13:48:59 +0000 (15:48 +0200)]
id3v2: cosmetics: move some declarations before the places they are used

13 years agoshorten: remove the flush function.
Justin Ruggles [Sat, 17 Sep 2011 02:21:47 +0000 (22:21 -0400)]
shorten: remove the flush function.

The shorten decoder does not support seeking.

13 years agoshn: do not allow seeking in the raw shn demuxer.
Justin Ruggles [Sun, 2 Oct 2011 16:03:22 +0000 (12:03 -0400)]
shn: do not allow seeking in the raw shn demuxer.

The demuxer does not read the seektable, a parser is not possible without a
full decode, and no shorten decoder can handle random seeking because it needs
side info from the seektable.

13 years agoavformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.
Justin Ruggles [Sun, 2 Oct 2011 15:57:53 +0000 (11:57 -0400)]
avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.

This will prevent seeking by bytes for formats that cannot handle this.

13 years agoavformat: update AVInputFormat allowed flags
Justin Ruggles [Sun, 2 Oct 2011 15:29:20 +0000 (11:29 -0400)]
avformat: update AVInputFormat allowed flags

13 years agoavformat: don't unconditionally call ff_read_frame_flush() when trying to seek.
Justin Ruggles [Fri, 16 Sep 2011 23:02:23 +0000 (19:02 -0400)]
avformat: don't unconditionally call ff_read_frame_flush() when trying to seek.

This prevents flushing the packet buffer when the input format does not
support seeking.

13 years agotruespeech: use sizeof() instead of hardcoded sizes
Justin Ruggles [Thu, 13 Oct 2011 18:03:17 +0000 (14:03 -0400)]
truespeech: use sizeof() instead of hardcoded sizes

13 years agotruespeech: remove unneeded variable, 'consumed'
Justin Ruggles [Thu, 13 Oct 2011 04:21:17 +0000 (00:21 -0400)]
truespeech: remove unneeded variable, 'consumed'

increment the 'buf' pointer instead, and consume the whole packet.

13 years agotruespeech: simplify truespeech_read_frame() by using get_bits()
Justin Ruggles [Thu, 13 Oct 2011 04:17:05 +0000 (00:17 -0400)]
truespeech: simplify truespeech_read_frame() by using get_bits()

13 years agotruespeech: decode directly to output buffer instead of a temp buffer
Justin Ruggles [Thu, 13 Oct 2011 03:27:32 +0000 (23:27 -0400)]
truespeech: decode directly to output buffer instead of a temp buffer

13 years agotruespeech: check to make sure channels == 1
Justin Ruggles [Thu, 13 Oct 2011 03:23:18 +0000 (23:23 -0400)]
truespeech: check to make sure channels == 1

13 years agotruespeech: check for large enough output buffer rather than truncating output
Justin Ruggles [Thu, 13 Oct 2011 03:15:00 +0000 (23:15 -0400)]
truespeech: check for large enough output buffer rather than truncating output

13 years agotruespeech: remove unneeded zero-size packet check.
Justin Ruggles [Thu, 13 Oct 2011 03:10:41 +0000 (23:10 -0400)]
truespeech: remove unneeded zero-size packet check.

This is already checked in avcodec_decode_audio3()

13 years agomlpdec: return meaningful error codes instead of -1
Justin Ruggles [Thu, 13 Oct 2011 02:47:50 +0000 (22:47 -0400)]
mlpdec: return meaningful error codes instead of -1

13 years agomlpdec: remove unnecessary wrapper function
Justin Ruggles [Thu, 13 Oct 2011 02:37:12 +0000 (22:37 -0400)]
mlpdec: remove unnecessary wrapper function

13 years agomlpdec: only calculate output size once
Justin Ruggles [Wed, 21 Sep 2011 16:14:28 +0000 (12:14 -0400)]
mlpdec: only calculate output size once

13 years agomlpdec: validate that the reported channel count matches the actual output
Justin Ruggles [Thu, 13 Oct 2011 02:30:44 +0000 (22:30 -0400)]
mlpdec: validate that the reported channel count matches the actual output
channel count

13 years agopcm: reduce pointer type casting
Mans Rullgard [Sat, 8 Oct 2011 11:47:53 +0000 (12:47 +0100)]
pcm: reduce pointer type casting

Making 'samples' a pointer to uint8_t simplifies the DECODE
macro and reduces the amount of type casting overall.

This also fixes some signed overflows on left shift.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agomathops: remove undefined behaviour from sign_extend()
Mans Rullgard [Sun, 9 Oct 2011 11:57:08 +0000 (12:57 +0100)]
mathops: remove undefined behaviour from sign_extend()

This function intentionally overflows the signed range on
the left shift.  Using this type-punning avoids errors from
the overflow checker without disabling this test globally.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agovc1: explicitly zero interlaced mode coding variables for progressive mode
Kostya Shishkov [Thu, 13 Oct 2011 08:12:42 +0000 (10:12 +0200)]
vc1: explicitly zero interlaced mode coding variables for progressive mode

Both v->fcm and v->field_mode are used in common code, now they won't be
reset for progressive frame after interlaced one causing writing past the
frame end for example.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>