Michael Niedermayer
1af3571e05
mjpeg_parser: Rewrite to skip marker segments
...
Based on code by Aaron Miller <amiller@atlasdigital.tv>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
429b3cd6f5
mjpeg_parser: add MJPEGParserContext
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
0387ad892c
Be more verbose about unsupported H.264 bit-depths.
13 years ago
Michael Niedermayer
9b04f51d5f
proresenc: add forgotten bytestream include
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
c5865a8967
Use bytestream functions to write header.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
d9f4dc52a0
Only do 1 malloc instead of 3 and check for failure.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
5c9b9165cd
Remove unnecessary memset.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
a2db46b883
Remove useless casts.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Carl Eugen Hoyos
4d2f991187
Bump libavcodec minor version for the ProRes encoder.
13 years ago
Carl Eugen Hoyos
7afa6b4458
Warn if YCgCo colourspace is detected in H.264.
13 years ago
Anatoliy Wasserman
70bab5847e
Apple ProRes encoder
...
Signed-off-by: Anatoliy Wasserman <anatoliy.wasserman@yandex.ru>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
77b5c82b49
isom: Add MPEG4SYSTEMS dummy object type indication.
13 years ago
Michael Niedermayer
bc2dd36740
aacdec: allow output reconfiguration on channel changes
...
Locking the decoder against channel config changes in
parse_adts_frame_header() seems to be unnecessary and
streams with channel config changes are reported.
The sample in http://roundup.libav.org/issue999 still works.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Justin Ruggles
f3db0f7403
nellymoserenc: take float input samples instead of int16
...
This avoids having to convert all input data from int16 to float, which is used
internally for encoding.
13 years ago
Justin Ruggles
77c8ef9a36
nellymoserdec: use dsp functions for overlap and windowing
13 years ago
Justin Ruggles
8c9581f052
nellymoserdec: do not fail if there is extra data in the packet
...
instead just print a warning
13 years ago
Justin Ruggles
0aaa85dbed
nellymoserdec: fail if output buffer is too small
...
avoids silently truncating the output
13 years ago
Justin Ruggles
f19305fe93
nellymoserdec: remove pointless buffer size check.
13 years ago
Michael Niedermayer
8fa97302e0
snow: do not draw_edge if emu_edge is set
...
Fix segfault on emu edge, to reproduce
make fate-vsynth1-snow
avplay -flags emu_edge tests/data/vsynth1/snow.avi
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Carl Eugen Hoyos
246c8dac3e
Fix dca decoding for many samples after last commit.
...
Still be less verbose about channel count change from 0 channels.
13 years ago
Carl Eugen Hoyos
ad2d597292
Be less verbose about dca channel number changes.
...
Only inform the user that the number of channels changed if it was set
before.
13 years ago
Carl Eugen Hoyos
81cd96caee
Remove unused dca context variable.
13 years ago
Justin Ruggles
813907d424
wmavoice: move output buffer size check to synth_superframe().
...
this allows for checking against the actual output size instead of max size.
13 years ago
Justin Ruggles
d064076570
wmavoice: only set data_size to 0 when necessary
13 years ago
Justin Ruggles
1db6437f6c
wmapro: fix strict-aliasing violations by using av_alias32
...
Also fix some undefined unsigned/signed conversions.
13 years ago
Justin Ruggles
b8b4c9c328
wmapro: use FmtConvertContext.float_interleave() to interleave output samples
13 years ago
Justin Ruggles
d0b1b1c5c7
wmadec: consolidate 2 output buffer size checks into 1 check
13 years ago
Justin Ruggles
9a33264478
apedec: assert that s->samples is not negative before trying to decode
13 years ago
Justin Ruggles
0927154d37
apedec: use FFALIGN macro for internal data buffer size
13 years ago
Justin Ruggles
5b8009f4c8
apedec: do not keep incrementing the input data pointer past the end of the
...
buffer during entropy decoding.
The pointer address could overflow, which would likely segfault. Instead set
the context error flag to indicate that the decoder tried to read past the
end of the packet data.
13 years ago
Justin Ruggles
a4c32c9a63
apedec: check for input buffer overflow while reading frame header
13 years ago
Justin Ruggles
fd244ae3a0
apedec: use unsigned int for offset
...
avoids implementation-defined unsigned-to-signed conversion and simplifies
the bounds checking.
13 years ago
Justin Ruggles
89ec474a43
apedec: remove pointless increment of 'buf'
...
The variable is not used anymore at that point.
13 years ago
Justin Ruggles
52d4fb2a3d
apedec: set s->currentframeblocks after validating nblocks
13 years ago
Justin Ruggles
2cab578489
apedec: use unsigned int for 'nblocks' and make sure that it's within int range
13 years ago
Justin Ruggles
b7e5145759
apedec: do not set s->samples until after validation.
...
This prevents errors and/or invalid writes in the next decode call due to
s->samples still being negative.
13 years ago
Justin Ruggles
11ca8b2d74
apedec: check for data buffer realloc failure
13 years ago
Justin Ruggles
91b71460b5
apedec: return meaningful error values in ape_decode_frame()
13 years ago
Justin Ruggles
c6defb41ef
apedec: correct an error message
13 years ago
Justin Ruggles
da55e0980e
apedec: cosmetics
...
break some excessively long lines and remove space after '*'
13 years ago
Justin Ruggles
f64e0a2f37
apedec: return meaningful error codes from ape_decode_init()
13 years ago
Justin Ruggles
7500781313
apedec: check for filter buffer allocation failure
13 years ago
Justin Ruggles
b9d6b02713
apedec: use memcpy for pseudo-stereo mode
13 years ago
Justin Ruggles
3c25209bd9
apedec: remove unneeded check for zero-size packet.
...
This is already checked by avcodec_decode_audio3().
13 years ago
Hendrik Leppkes
022d22e581
Fix a regression in the dca parser introduced by dts express support.
...
The dca parser needs to check that the framesize is actually of a complete
frame, and not of a partial DTS-HD frame, which is not constant size, and
thus the check would fail.
(cherry picked from commit ebc0ccb9af59b78732e82c09f8c90b1d46b478e0)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Hendrik Leppkes
14474fbbd0
dca_parser: Add support for parsing dts express
...
(cherry picked from commit ea36f60493f675db531dc2dbef04fb60fbc21a6a)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Hendrik Leppkes
7b6ae0e849
dca: allow the channel count to change.
...
(cherry picked from commit 42e78d2296752293cd08c5727f76c3b37c68fb24)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
ec6d743118
mp3on4: do not needlessly set data_size to 0
13 years ago
Justin Ruggles
99975966c3
mp3adu: return error instead of just consuming bad packets
13 years ago
Justin Ruggles
e2e6c8799b
mpegaudiodec: check output data size based on avctx->frame_size
13 years ago