Justin Ruggles [Sun, 29 Sep 2013 23:47:55 +0000 (19:47 -0400)]
tiffdec: use bytestream2 to simplify overread/overwrite protection
Based on a patch by Paul B Mahol <onemda@gmail.com>
CC:libav-stable@libav.org
Justin Ruggles [Sun, 29 Sep 2013 23:45:57 +0000 (19:45 -0400)]
bytestream: add bytestream2_copy_buffer() functions
This is basically an overread/overwrite-safe memcpy between a
GetByteContext and a PutByteContext.
CC:libav-stable@libav.org
Paul B Mahol [Wed, 21 Mar 2012 00:10:18 +0000 (00:10 +0000)]
bytestream: add functions for accessing size of buffer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org
Justin Ruggles [Sat, 28 Sep 2013 16:20:19 +0000 (12:20 -0400)]
tiffdec: use correct data type for palette entries and set alpha to 0xFF
Jean First [Fri, 23 Sep 2011 06:22:31 +0000 (08:22 +0200)]
tiffdec: rename variables for consistency and fix variable shadowing
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Justin Ruggles [Sat, 5 Apr 2014 18:14:30 +0000 (14:14 -0400)]
swscale: Set alpha to opaque for internal palettes.
Fixes conversion of pal8 to rgb formats with alpha.
Updated references for 2 FATE tests which previously encoded fully
transparent images.
Based on a patch by Baptiste Coudurier <baptiste.coudurier@gmail.com>
Justin Ruggles [Sat, 5 Apr 2014 18:46:22 +0000 (14:46 -0400)]
swscale: fix some undefined signed left shifts
Based on a patch by Michael Niedermayer <michaelni@gmx.at>
Justin Ruggles [Sat, 5 Apr 2014 18:05:19 +0000 (14:05 -0400)]
swscale: fix an implementation-defined unsigned-to-signed conversion
Katerina Barone-Adesi [Sun, 6 Apr 2014 10:32:49 +0000 (12:32 +0200)]
doc: Libavfilter English cleanup
This aims to standardize the English used in the libavfilter
documentation, describing the same thing in the same way more often,
and significantly reduce the amount of outright errors, including
run-on sentences and sentence fragments.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Michael Niedermayer [Wed, 9 Apr 2014 16:22:53 +0000 (18:22 +0200)]
mp3enc: Properly write bitrate value in XING header
Instead of using a fixed bitrate_idx, calculate a matching bitrate for
the XING header.
Using a fixed bitrate_idx causes tools such as file(1) and mediainfo(1)
to report wrong bitrate and bitrate mode when using CBR.
Bug-Id: https://bugs.debian.org/736088
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Anton Khirnov [Tue, 4 Mar 2014 16:12:33 +0000 (17:12 +0100)]
resample: split linear into its own function
Anton Khirnov [Tue, 4 Mar 2014 15:56:01 +0000 (16:56 +0100)]
resample: add initial padding explicitly
This simplifies the code, since we do not have to deal with a possibly
negative source index anymore.
Anton Khirnov [Tue, 4 Mar 2014 11:27:17 +0000 (12:27 +0100)]
resample: drop useless abs()
negative sample_index is handled in the block above.
Anton Khirnov [Mon, 3 Mar 2014 21:28:07 +0000 (22:28 +0100)]
resample: reindent
Anton Khirnov [Mon, 3 Mar 2014 21:26:57 +0000 (22:26 +0100)]
resample: split the nearest neighbour path into a separate function pointer
Anton Khirnov [Tue, 4 Mar 2014 20:18:27 +0000 (21:18 +0100)]
resample: fix avresample_get_delay() return value
The correct "next" input sample is not the first sample of the
resampling buffer, but the center sample of the filter_length-sized
block at the beginning.
CC:libav-stable@libav.org
Timothy Gu [Fri, 28 Mar 2014 01:37:51 +0000 (02:37 +0100)]
DNxHD: convert inline asm to yasm
Timothy Gu [Fri, 28 Mar 2014 01:32:09 +0000 (02:32 +0100)]
DNxHD: make get_pixel_8x4_sym accept ptrdiff_t as stride
Vittorio Giovara [Fri, 28 Mar 2014 01:02:48 +0000 (02:02 +0100)]
DNxHD: K&R formatting cosmetics
Luca Barbato [Thu, 10 Apr 2014 22:09:34 +0000 (00:09 +0200)]
mp2: Do not force a samplerate
The default should be not to resample.
Derek Buitenhuis [Thu, 10 Apr 2014 12:27:41 +0000 (13:27 +0100)]
libx265: Only set the SAR if it is valid
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Derek Buitenhuis [Thu, 10 Apr 2014 12:17:48 +0000 (13:17 +0100)]
libx265: Use 16-bit SAR
The spec says it is 16 bits.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Derek Buitenhuis [Tue, 8 Apr 2014 17:44:53 +0000 (18:44 +0100)]
libx265: Use x265_param_parse to set the SAR
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Anton Khirnov [Tue, 1 Apr 2014 21:22:21 +0000 (23:22 +0200)]
mov: read hydrogenaudio replaygain information
Nicolas George [Thu, 3 Apr 2014 13:42:22 +0000 (15:42 +0200)]
libavfilter: Add asettb filter for setting timebase for audio
Ported asettb (including the sr option for audio sample rate) from FFmpeg,
and copied/modified the existing settb documentation for asettb.
Signed-off-by: Katerina Barone-Adesi <katerinab+libav@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
wm4 [Mon, 31 Mar 2014 17:46:29 +0000 (17:46 +0000)]
mpegvideo: operate with pointers to AVFrames instead of whole structs
The most interesting parts are initialization in ff_MPV_common_init() and
uninitialization in ff_MPV_common_end().
ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL
checks for Picture.f, because these functions can be called on
uninitialized or partially initialized Pictures.
NULL pointer checks are added to ff_thread_release_buffer() stub function.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Vittorio Giovara [Wed, 9 Apr 2014 00:02:29 +0000 (02:02 +0200)]
fate: correctly set sample rate for mp2 tests
Luca Barbato [Mon, 7 Apr 2014 01:49:41 +0000 (01:49 +0000)]
doc: Completely document the x264 options
And fix an option mismatch.
Luca Barbato [Mon, 7 Apr 2014 01:49:40 +0000 (01:49 +0000)]
doc: Use a 3 columns multitable
Make the html output much nicer.
Luca Barbato [Mon, 7 Apr 2014 01:49:39 +0000 (01:49 +0000)]
doc: Change the multitable rendering in texi2pod
Makes it working better for our documentation purposes.
Vittorio Giovara [Mon, 7 Apr 2014 21:45:55 +0000 (23:45 +0200)]
fate: update tests for YVYU422 pixel format
Vittorio Giovara [Sun, 9 Mar 2014 12:26:19 +0000 (12:26 +0000)]
rawvideo: Support decoding YVYU422 FourCC
Vittorio Giovara [Mon, 7 Apr 2014 15:19:53 +0000 (17:19 +0200)]
swscale: support converting YVYU422 pixel format
Vittorio Giovara [Sun, 9 Mar 2014 12:26:18 +0000 (12:26 +0000)]
lavu: Add packed YVYU422 pixel format
Vittorio Giovara [Mon, 7 Apr 2014 14:25:23 +0000 (16:25 +0200)]
mp2: match twolame default options
Paul B Mahol [Wed, 1 Aug 2012 16:33:34 +0000 (16:33 +0000)]
libtwolame MP2 encoding support
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Vittorio Giovara [Mon, 7 Apr 2014 12:56:25 +0000 (14:56 +0200)]
libxvid: fix missing end of line character
Error introduced in
5ce7ca68b86856ee8e9d6530dffdadc4eca4f8d1.
Timothy Gu [Sat, 2 Nov 2013 22:03:30 +0000 (15:03 -0700)]
xtea: Add Doxy @file and group
Timothy Gu [Fri, 14 Jun 2013 08:42:55 +0000 (05:42 -0300)]
adler32: Fix doxy group definition
Based on a patch by James Almer <jamrial@gmail.com>.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Luca Barbato [Sat, 5 Apr 2014 00:41:12 +0000 (00:41 +0000)]
h264: Refactor decode_nal_units
Timothy Gu [Wed, 31 Jul 2013 02:40:45 +0000 (19:40 -0700)]
libxvid: Add SSIM displaying through a libxvidcore plugin
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Timothy Gu [Wed, 31 Jul 2013 02:39:06 +0000 (19:39 -0700)]
libxvid: add working lumimasking and variance AQ
The old implementation is unusable due to changes in the Xvid API.
Further fixes by Michael Niedermayer <michaelni@gmx.at>.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Janne Grunau [Sat, 5 Apr 2014 09:47:18 +0000 (11:47 +0200)]
aarch64: implement videodsp.prefetch
8% faster h264 decoding on Apple A7.
Janne Grunau [Sat, 5 Apr 2014 11:46:51 +0000 (13:46 +0200)]
aarch64: add armv8 CPU flag
Paul B Mahol [Thu, 21 Jun 2012 14:08:41 +0000 (14:08 +0000)]
fate: add tests for SANM and VIMA
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Paul B Mahol [Tue, 11 Mar 2014 15:24:55 +0000 (16:24 +0100)]
LucasArts SMUSH demuxer
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Paul B Mahol [Mon, 19 Mar 2012 02:52:08 +0000 (02:52 +0000)]
LucasArts SMUSH VIMA audio decoder
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Paul B Mahol [Mon, 19 Mar 2012 02:54:19 +0000 (02:54 +0000)]
LucasArts SMUSH SANM video decoder
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diego Biurrun [Wed, 26 Mar 2014 11:41:29 +0000 (04:41 -0700)]
dsputil: Move DV-specific ff_zigzag248_direct table to dvdata
Diego Biurrun [Wed, 26 Mar 2014 11:41:28 +0000 (04:41 -0700)]
x86: dsputil: Move ff_apply_window_int16_* bits to ac3dsp, where they belong
Diego Biurrun [Wed, 26 Mar 2014 11:41:26 +0000 (04:41 -0700)]
x86: h264_qpel: Simplify an #if conditional
The extra conditions are covered by previous #ifs and conditional compilation.
Diego Biurrun [Wed, 26 Mar 2014 11:41:25 +0000 (04:41 -0700)]
x86: Drop some unnecessary YASM ifdefs
Dead code elimination is enough to avoid undefined references in these cases.
Diego Biurrun [Wed, 26 Mar 2014 11:41:24 +0000 (04:41 -0700)]
ppc: Drop a bunch of unnecessary dsputil_altivec.h #includes
Diego Biurrun [Wed, 26 Mar 2014 11:41:23 +0000 (04:41 -0700)]
x86: dsputil: Eliminate some unnecessary dsputil_x86.h #includes
Diego Biurrun [Wed, 26 Mar 2014 11:41:22 +0000 (04:41 -0700)]
Remove a number of unnecessary dsputil.h #includes
Anton Khirnov [Thu, 3 Apr 2014 12:22:48 +0000 (14:22 +0200)]
af_ashowinfo: print a more descriptive name for AV_MATRIX_ENCODING_DOLBY
Alessandro Ghedini [Fri, 4 Apr 2014 16:42:09 +0000 (18:42 +0200)]
af_volume: implement replaygain pre-amplification
This adds a new "replaygain_preamp" option to the filter, and simply adds its
value to the replaygain gain value.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
James Almer [Thu, 20 Mar 2014 18:37:56 +0000 (15:37 -0300)]
x86/synth_filter: add synth_filter_fma3
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
James Almer [Thu, 20 Mar 2014 18:37:55 +0000 (15:37 -0300)]
x86/synth_filter: add synth_filter_avx
Sandy Bridge Win64:
180 cycles in ff_synth_filter_inner_sse2
150 cycles in ff_synth_filter_inner_avx
Also switch some instructions to a three operand format to avoid
assembly errors with Yasm 1.1.0 or older.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
James Almer [Thu, 20 Mar 2014 18:37:54 +0000 (15:37 -0300)]
x86/synth_filter: add synth_filter_sse
Build only on x86_32 targets.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Michael Niedermayer [Fri, 4 Apr 2014 09:50:49 +0000 (11:50 +0200)]
replaygain: remove unused variable
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Alessandro Ghedini [Fri, 4 Apr 2014 09:50:46 +0000 (11:50 +0200)]
oggparsevorbis: export replaygain tags from Vorbis comments
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Alessandro Ghedini [Fri, 4 Apr 2014 09:50:45 +0000 (11:50 +0200)]
flacdec: export replaygain tags from Vorbis comments
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Alessandro Ghedini [Fri, 4 Apr 2014 09:50:44 +0000 (11:50 +0200)]
replaygain: correctly parse peak values
According to the ReplayGain spec, the peak amplitude may overflow and may result
in peak amplitude values greater than 1.0 with psychoacoustically coded audio,
such as MP3. Fully compliant decoders must allow peak overflows.
Additionally, having peak values in the 0<->UINT32_MAX scale makes it more
difficult for applications to actually use the peak values (e.g. when
implementing clipping prevention) since values have to be rescaled down.
This patch corrects the peak parsing by removing the rescaling of the decoded
values between 0 and UINT32_MAX and the 1.0 upper limit.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Alessandro Ghedini [Fri, 4 Apr 2014 09:50:43 +0000 (11:50 +0200)]
replaygain: fix gain sign decoding
The gain sign was incorrectly decoded: since the FFSIGN() macro treats 0 as
negative, gain values starting with "0." were always decoded as negative.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Janne Grunau [Fri, 4 Apr 2014 08:11:06 +0000 (10:11 +0200)]
arm: asm decode_block_coeffs_internal is vp8 specific
Unbreaks compilation on arm due to conflicting types for
'ff_decode_block_coeffs_armv6'.
Vittorio Giovara [Sun, 9 Mar 2014 07:59:40 +0000 (08:59 +0100)]
fate: add a VP7 test
Peter Ross [Tue, 1 Apr 2014 12:21:51 +0000 (14:21 +0200)]
On2 VP7 decoder
Further performance improvements and security fixes by
Vittorio Giovara, Luca Barbato and Diego Biurrun.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Carl Eugen Hoyos [Thu, 3 Apr 2014 14:32:59 +0000 (16:32 +0200)]
riff: Add an additional AAC TwoCC
Mentioned on http://msdn.microsoft.com/en-us/library/
dd341376%28prot.20%29.aspx
Piotr Bandurski [Thu, 3 Apr 2014 14:30:51 +0000 (16:30 +0200)]
riff: support 0xa100 TwoCC for G723_1
Sample-Id:
4790b7f1c44f98e35f3b806468fa615f5930a5b3.wav
Piotr Bandurski [Thu, 3 Apr 2014 14:29:32 +0000 (16:29 +0200)]
riff: add 0x594a TwoCC for Xan DPCM
Sample-Id: crusader-no-regret.avi
Compn [Tue, 3 Sep 2013 12:25:43 +0000 (08:25 -0400)]
riff: add 0x64 to g726
Sample-Id: g726-test1.wav
Piotr Bandurski [Thu, 3 Apr 2014 14:19:32 +0000 (16:19 +0200)]
riff: add G723_1 wav tag
Compn [Thu, 3 Apr 2014 14:18:26 +0000 (16:18 +0200)]
riff: map 0x0038 to amrnb
Sample-Id: 40709.avi
Paul B Mahol [Thu, 3 Apr 2014 14:15:09 +0000 (16:15 +0200)]
riff: Support FLIC FourCC
Michael Niedermayer [Thu, 3 Apr 2014 14:12:55 +0000 (16:12 +0200)]
riff: add escape130 FourCC
Piotr Bandurski [Thu, 3 Apr 2014 13:39:40 +0000 (15:39 +0200)]
riff: support 'aas4' FourCC
Piotr Bandurski [Thu, 3 Apr 2014 13:37:20 +0000 (15:37 +0200)]
riff: add "YUV8" FourCC
Sample-Id: MAILTEST.AVI
Piotr Bandurski [Thu, 3 Apr 2014 13:34:44 +0000 (15:34 +0200)]
riff: Add "S263" FourCC
Michael Niedermayer [Thu, 3 Apr 2014 13:31:46 +0000 (15:31 +0200)]
riff: Support XMPG as mpeg1
Michael Niedermayer [Thu, 3 Apr 2014 13:10:45 +0000 (15:10 +0200)]
riff: support BW10 as mpeg1
Piotr Bandurski [Thu, 3 Apr 2014 13:09:23 +0000 (15:09 +0200)]
riff: Add SLDV FourCC for dvvideo
Carl Eugen Hoyos [Thu, 3 Apr 2014 13:08:40 +0000 (15:08 +0200)]
riff: Support NTSC forward dvcpro videos
PAL looks incorrect.
Piotr Bandurski [Thu, 3 Apr 2014 13:08:04 +0000 (15:08 +0200)]
riff: add dvis/pdvc FourCCs
Piotr Bandurski [Fri, 9 Nov 2012 23:24:09 +0000 (00:24 +0100)]
riff: add "GXVE" FourCC for WMV2
Sample-Id: vivd.avi
Compn [Thu, 3 Apr 2014 10:58:13 +0000 (12:58 +0200)]
riff: add PLV1 fourcc to mpeg4
Sample-Id: york-water-meteor.avi
Carl Eugen Hoyos [Thu, 3 Apr 2014 10:57:16 +0000 (12:57 +0200)]
riff: Support decoding ASP variant from QNAP Systems
Piotr Bandurski [Thu, 3 Apr 2014 10:56:33 +0000 (12:56 +0200)]
riff: add "SM4V" FourCC
Compn [Tue, 19 Nov 2013 19:24:25 +0000 (14:24 -0500)]
riff: add DYM4 mpeg4 fourcc
Piotr Bandurski [Thu, 15 Aug 2013 12:12:47 +0000 (14:12 +0200)]
riff: add DM4V FourCC
Compn [Fri, 15 Nov 2013 14:45:08 +0000 (09:45 -0500)]
riff: add G264 to mpeg4, only decodes keyframes
Piotr Bandurski [Mon, 5 Nov 2012 16:43:01 +0000 (17:43 +0100)]
riff: add "lsvm" FourCC for H263.
Carl Eugen Hoyos [Mon, 14 Oct 2013 14:29:58 +0000 (16:29 +0200)]
riff: Support H.264 fourcc UMSV
Carl Eugen Hoyos [Thu, 3 Apr 2014 10:46:46 +0000 (12:46 +0200)]
riff: add FourCC for GeoVision cameras
Carl Eugen Hoyos [Sat, 1 Dec 2012 23:43:39 +0000 (00:43 +0100)]
riff: Add V264 for H264 in CCTV recordings
Carl Eugen Hoyos [Thu, 3 Apr 2014 10:00:05 +0000 (12:00 +0200)]
riff: add H264 from QNAP Systems
Piotr Bandurski [Sat, 10 Nov 2012 01:11:49 +0000 (02:11 +0100)]
riff: add SMV2 FourCC for H264
Sample-Id: smv2.avi
Clément Bœsch [Thu, 31 May 2012 07:31:04 +0000 (09:31 +0200)]
riff: add ISMP/timecode tag
James Almer [Thu, 18 Jul 2013 08:44:40 +0000 (05:44 -0300)]
riff: Add ITRK tag
Some players, like foobar2000 or modern versions of WMP, create WAV
files using the ITRK tag for track instead of IPRT
Piotr Bandurski [Thu, 3 Apr 2014 08:04:31 +0000 (10:04 +0200)]
isom: add some BOXX tags