Vittorio Giovara
e96c3b81ca
avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8
The rationale is that you have a packed format in form
<greyscale sample> <alpha sample> <greyscale sample> <alpha sample>
and shortening greyscale to 'G' might make one thing about Greenscale instead.
An alias pixel format and color space name are provided for compatibility.
11 years ago
Kieran Kunhya
1ef9e83764
avcodec: Deprecate dtg_active_format field in favor of avframe side-data
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Diego Biurrun
d0393d79bc
huffyuv: Check and propagate function return values
Bug-Id: CVE-2013-0868
inspired by a patch from Michael Niedermayer <michaelni@gmx.at>
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Diego Biurrun <diego@biurrun.de>
CC: libav-stable@libav.org
11 years ago
Diego Biurrun
6234058148
huffyuv: Return proper error codes
11 years ago
Diego Biurrun
3160bdc7f7
huffyuv: Use avpriv_report_missing_feature() where appropriate
11 years ago
Diego Biurrun
b7616f5716
huffyuv: Eliminate some pointless casts
11 years ago
Diego Biurrun
c065f4a0c6
huffyuv: K&R formatting cosmetics
11 years ago
Anton Khirnov
f89d76c103
mpeg4video: Initialize xvididct for all threads
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Janne Grunau
ac6b95dbc0
aarch64: add ',' between assembler macro arguments where missing
llvm's integrated assembler does not accept spaces as macro argument
delimiter when targeting darwin. Using a explicit delimiter is a good
idea in principle since it makes case like 'macro 4 -2' vs 'macro 4 - 2'
clear.
11 years ago
Diego Biurrun
9f17685dfb
avcodec: Deprecate unused defines and options
11 years ago
Diego Biurrun
bad81800bb
avcodec: options: Add missing deprecation ifdefs around emu_edge
11 years ago
Diego Biurrun
c697c590fb
lcl: Disentangle pointers to input data and decompression buffer
This is cleaner and avoids a cast plus a related const qualifier warning.
11 years ago
Diego Biurrun
df507d5aa0
tiff: Replace deprecated PIX_FMT names by modern ones
11 years ago
Diego Biurrun
7835c24e19
dv: Update DV-profile-related functions to current public API
11 years ago
Diego Biurrun
ffa4d4ef0b
ppc: fft: Build AltiVec optimizations in the standard way
11 years ago
Vittorio Giovara
7ab551f9fd
h264: prevent theoretical infinite loop in SEI parsing
Properly address CVE-2011-3946 and parse bitstream as described in the spec.
CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
11 years ago
Vittorio Giovara
92a36a6b33
pngdec: correctly indent macros
11 years ago
Diego Biurrun
4da8cdbb91
tscc: Eliminate pointless variable indirections in decode_frame()
11 years ago
Diego Biurrun
5735552f1f
pngenc: Drop pointless pointer cast in png_write_row()
11 years ago
Diego Biurrun
a786c8259d
idct: Split off Xvid IDCT
The Xvid IDCT is only required to decode some Xvid-encoded MPEG-4 files,
so there is no point in having it as an unconditional part of idctdsp.
11 years ago
Diego Biurrun
03c9f357a4
ppc: idctdsp: Immediately return if no AltiVec is available
This is how all the other init functions operate.
11 years ago
Michael Niedermayer
d98e6c5d5d
pgssubdec: Check RLE size before copying
Make sure the buffer size does not exceed the expected
RLE size.
Prevent an out of array bound write.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Bug-Id: CVE-2013-0852
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Nidhi Makhijani
ccbf370f20
mpegvideo: move vol_control_parameters to the only place it is used
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Diego Biurrun
019a28cd63
sanm: Use correct printf conversion specifiers for POSIX int types
11 years ago
Diego Biurrun
4f8cf0dc4e
x86: build: Restore ordering of OBJS lines
11 years ago
Anton Khirnov
e76f2d1197
hevc: eliminate the last element from TransformTree
Replace it by passing an additional parameter to transform_unit()
11 years ago
Anton Khirnov
4aa80808bc
hevc: eliminate unnecessary cbf_c{b,r} arrays
They are replaced by passing additional parameters to the transform
functions.
11 years ago
Anton Khirnov
0daa255463
hevc: do not store the transform inter_split flag in the context
It does not need to be preserved.
11 years ago
Anton Khirnov
53a11135f2
hevc: simplify splitting the transform tree blocks
11 years ago
Anton Khirnov
e36a2f4c52
hevc: eliminate an unnecessary array
We do not need to store the value of the split flag.
11 years ago
Anton Khirnov
4b169321b8
codec_desc: fix some typos in long codec names
The rv20 typo spotted by Hendrik Leppkes <h.leppkes@gmail.com>
11 years ago
Anton Khirnov
c5fca0174d
lavc: add a property for marking codecs that support frame reordering
11 years ago
Anton Khirnov
541427ab4d
eamad: use the bytestream2 API instead of AV_RL
This is safer and possibly fixes invalid reads on truncated data.
CC:libav-stable@libav.org
11 years ago
Diego Biurrun
53abe32409
avcodec: Mark argument in av_{parser|hwaccel|bitstream_filter}_next as const
11 years ago
Pierre Edouard Lepere
1a880b2fb8
hevc: SSE2 and SSSE3 loop filters
Additional contributions by James Almer <jamrial@gmail.com>,
Carl Eugen Hoyos <cehoyos@ag.or.at>, Fiona Glaser <fiona@x264.com> and
Anton Khirnov <anton@khirnov.net>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Anton Khirnov
73bb8f61d4
hevcdsp: remove an unneeded variable in the loop filter
beta0 and beta1 will always be the same
11 years ago
Diego Biurrun
d8520d3ee0
mpegvideo: Move QMAT_SHIFT* defines to the only place they are used
11 years ago
Diego Biurrun
4fbb62a21b
mpegvideo: Move ME_MAP_* defines to the only place they are used
11 years ago
Diego Biurrun
ff85334375
mpegvideo: Drop unused MPEG_BUF_SIZE and CHROMA_444 defines
11 years ago
Diego Biurrun
165e9df195
fft-test: Pass the right struct members instead of casting
11 years ago
Diego Biurrun
58e65e44f4
vc1dsp: Add wrappers for {avg|put}_vc1_mspel_mc00_c
This avoids invoking the wrapped functions with too many arguments.
11 years ago
Diego Biurrun
7fb993d338
qpeldsp: Mark source pointer in qpel_mc_func function pointer const
11 years ago
Diego Biurrun
060e4a9e06
dct/rdft: Remove duplicate typedefs for context structs
The typedefs also exist in the avfft.h header and since typedefs cannot be
legally redefined in C, the code fails to compile with some compilers.
This reverts commits 11c7155cce and 57f1b1dcc7 .
11 years ago
Nidhi Makhijani
436ced244f
mpegenccontext: Remove unused opaque pointer
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Diego Biurrun
d0de7330b9
fft-test: Pass correct struct members to (i)dct functions
This fixes a number of incompatible pointer type warnings.
11 years ago
Diego Biurrun
6133d65861
fft-test: K&R formatting cosmetics
Also rearrange #includes into canonical order.
11 years ago
Diego Biurrun
c3c96deb5f
fft-test: Check memory allocations
11 years ago
Diego Biurrun
7288b34585
fft-test: Drop unnecessary pointer indirection for context structs
11 years ago
Diego Biurrun
d445c865f8
fft-test: Reduce variable scope where sensibly possible
Also merge variable declaration and initialization.
11 years ago
Nidhi Makhijani
eac77fcd56
mpegenccontext: Remove unused dct_unquantize_h261 function pointers
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago