Anton Khirnov
a4ea00d021
lavc/lavf: use unique private classes.
...
This is needed by the new AVOptions API.
13 years ago
Anton Khirnov
0ba1e1978d
lavc: use designated initializers for av_codec_context_class
13 years ago
Justin Ruggles
dd376b1a12
qcelpdec: cosmetics: do not add line break before opening bracket in 'for',
...
'while', 'if/else', and 'switch' statements.
also fixes some spacing, but only if already changing a line
13 years ago
Justin Ruggles
e43dd3d2a8
qcelp: check output buffer size before decoding
13 years ago
Chris Rankin
bde2570013
qcelpdec: fix the return value of qcelp_decode_frame().
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
1b5a189f06
sipr: fix the output data size check and only calculate it once.
13 years ago
Diego Biurrun
12bd8532cf
Synchronize various 4CCs and codec tags from FFmpeg.
13 years ago
Justin Ruggles
7d49f79f1c
qdm2: check output buffer size before decoding
13 years ago
Laurent Aimar
5a19acb17c
Fix out of bound reads in the QDM2 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Laurent Aimar
291d74a46d
Check for out of bound writes in the QDM2 decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
fc2dd2c7ac
ogg/celt: do not set sample_fmt in the demuxer
13 years ago
Anton Khirnov
60df6b0048
id3v2: remove pointless casts
13 years ago
Anton Khirnov
d2961e4ebf
id3v2: read TXXX frames with two calls to decode_str() instead of one.
...
Read the key in the first, value in the second.
This allows to avoid pointless strdups and simplify decode_str() by
dropping two of its parameters.
13 years ago
Anton Khirnov
1e18d32d01
id3v2: don't discard the whole tag when encountering empty frames.
...
While they're technically invalid, it's better to skip them and try to
read the rest of the tag.
13 years ago
Anton Khirnov
24ec9ac475
libvpx: fix build with older libvpx versions.
...
VPX_ERROR_RESILIENT_DEFAULT and VPX_ERROR_RESILIENT_PARTITIONS weren't
defined before 4cb0ebe5b27d35ccc2a78c1d16f2622ddef21f74 (CommitDate: Tue
Jun 28 11:10:17 2011)
13 years ago
Mans Rullgard
6308729e68
ARM: check for inline asm 'y' operand modifier support
...
The inline asm added in bf5d46d
uses the 'y' modifier which
is only supported from gcc 4.5. This check allows building
with older compilers.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Justin Ruggles
5674d4b0a3
mpc8: check output buffer size before decoding
13 years ago
Justin Ruggles
8290d1f38b
mpc7: return error if packet is too small.
13 years ago
Justin Ruggles
c8b5c4d274
mpc7: check output buffer size before decoding
13 years ago
Justin Ruggles
fac6b7f9f2
nellymoserdec: allocate float_buf only when decoding to int16
13 years ago
Justin Ruggles
32b484464c
nellymoserdec: use NELLY_BUF_LEN instead of 128
13 years ago
Justin Ruggles
ded0800d44
nellymoserdec: use NELLY_BLOCK_LEN instead of 64 when appropriate.
13 years ago
Justin Ruggles
84464b2e7f
nellymoserdec: allow user to request SAMPLE_FMT_FLT for output samples.
13 years ago
Justin Ruggles
8b31c086b6
nellymoser: check output buffer size before decoding
13 years ago
Luca Barbato
0e5cc174bb
win32: improve threading algorithm warning
...
If no threading is requested do not issue warning about unsupported
threading algorithm.
13 years ago
Anton Khirnov
b036a7180c
lavc: add video/audio/encoding flags to global_quality option
13 years ago
Luca Barbato
6450f26c9a
libvpxenc: use libvpx's own defaults for some parameters
...
Specifically, qmin/qmax, gop_size and keyint_min.
Fixes bug 47.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Luca Barbato
e3eb015ba4
vpxenc: add private options
...
Make libvpx support close to the libx264 one. Thanks to
Jan Gerber <j@v2v.cc> for the support.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Justin Ruggles
08bd22a61b
dpcm: return error if packet is too small
13 years ago
Justin Ruggles
0354fb7ebe
dpcm: use smaller data types for static tables
13 years ago
Justin Ruggles
5a54d51017
dpcm: use sol_table_16 directly instead of through the DPCMContext.
13 years ago
Justin Ruggles
f47f7efd14
dpcm: replace short with int16_t
13 years ago
Justin Ruggles
8d77d12a2b
dpcm: check to make sure channels is 1 or 2.
13 years ago
Justin Ruggles
4bad464e7f
dpcm: misc pretty-printing
13 years ago
Justin Ruggles
1de8401c56
dpcm: remove unnecessary variable by using bytestream functions.
...
Uses 'buf' directly instead of a separate iterator variable 'in'.
13 years ago
Justin Ruggles
fc6faee0d1
dpcm: move codec-specific variable declarations to their corresponding decoding blocks.
13 years ago
Justin Ruggles
989bb7bd04
dpcm: consistently use the variable name 'n' for the next input byte.
13 years ago
Justin Ruggles
04b24cf94b
dpcm: output AV_SAMPLE_FMT_U8 for Sol DPCM subcodecs 1 and 2.
...
Uses the native sample format for the codec instead of left-shifting all
samples by 8.
13 years ago
Justin Ruggles
76db17dc7d
dpcm: calculate and check actual output data size prior to decoding.
13 years ago
Justin Ruggles
3db8db406f
dpcm: factor out the stereo flag calculation
13 years ago
Justin Ruggles
b09c7eefb7
dpcm: cosmetics: rename channel_number to ch
...
Make the code easier to read.
13 years ago
Nathan Caldwell
f5e717f3c7
avserver: Fix a bug where the socket is IPv4, but IPv6 is autoselected for the loopback address.
...
This fixes bind(8080): Address family not supported by protocol.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Martin Storsjö
e81e5e8ad2
lavf: Avoid using av_malloc(0) in av_dump_format
...
On OS X, av_malloc(0) returns pointers that cause crashes when
freed.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Carl Eugen Hoyos
bcb1555489
dxva2_h264: pass the correct 8x8 scaling lists
...
Copy the Inter 8x8 scaling list as second 8x8 matrix into DXVA2's
quantization matrix data structure instead of a potentially unset
Intra chroma scaling matrix.
Fix dxva2 decoding for some H264 samples.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Mans Rullgard
bf5d46d8e6
dca: NEON optimised high freq VQ decoding
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Justin Ruggles
6326afd5e9
avcodec: reject audio packets with NULL data and non-zero size
...
There is no valid reason the user should ever send such packets in the
first place, but the documentation for CODEC_CAP_DELAY states that the
codec is guaranteed not to get a NULL packet unless that capability is
set. That isn't true without preventing this case.
13 years ago
Joakim Plate
dcce09d64b
dxva: Add ability to enable workaround for older ATI cards
...
The workaround needs to be enabled per PCI ID which cannot be detected inside
libavcodec. So add a flag to manually enable the alternate behavior.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Kieran Kunhya
d4a544cbc4
latmenc: Set latmBufferFullness to largest value to indicate it is not used
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Justin Ruggles
e562fbd003
adpcm: move codec-specific variable declarations to the sections for the corresponding codecs.
13 years ago
Justin Ruggles
9662539c10
adpcm: check buffer size in Funcom ISS decoder before reading header.
...
Also use the post-header data size to control termination of the main
decoding loop.
13 years ago