Alex Converse
88b2436911
mpc7: Fix memset call in mpc7_decode_frame function
14 years ago
Justin Ruggles
164fca39bd
atrac1: use correct context for av_log()
14 years ago
Justin Ruggles
c298b2b8db
apedec: consume the whole packet when copying to the decoder buffer.
This avoids artifically consuming a partial packet but ignoring remaining data
in subsequent calls.
14 years ago
Justin Ruggles
de157f2118
apedec: do not needlessly copy s->samples to nblocks.
also move nblocks to the local scope where it is used.
14 years ago
Justin Ruggles
4315c7d35a
apedec: check output buffer size after calculating actual output size
14 years ago
Justin Ruggles
ad17207b51
apedec: remove unneeded entropy decoder normalization.
The decoder already skips data at the end of the packet without this.
Also remove 2 APEContext fields that were only used for the end-of-frame
normalization.
14 years ago
Justin Ruggles
59f4d1b8bb
truespeech: use memmove() in truespeech_update_filters()
14 years ago
Justin Ruggles
41899b9acb
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
The user could provide a larger buffer, which is already checked separately
before writing output.
14 years ago
Justin Ruggles
e551a6f49a
vorbisdec: remove unneeded buf_size==0 check
14 years ago
Justin Ruggles
f666276fa6
vorbisdec: return proper error codes instead of made-up ones
14 years ago
Michael Niedermayer
80f716cd45
mpeg4videodec: fix lml4 and frame threading without -vsync 0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
2305742b2a
sunrast: Check for invalid/corrupted bitstream
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Michael Niedermayer
525a8f3ba5
lavc: update AVCodecContext.delay documentation
Based on reimars suggestion
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
3cc1af9dd9
pthreads: export the delay that was previously exported by mangling has_b_frames through
AVCodecContext.delay which was previously unused for decoders and fits better.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
f1f6d3615f
avcodec: add support for planar signed 8-bit PCM.
It is found in some 8svx files (e.g. ones created by SoX).
Currently the decoder reuses the 8svx functions because we already have
handling of a single large planar packet for the compressed 8svx codecs.
14 years ago
ami_stuff
dea8f6e18b
lowercase FRWU string
8556406d38 (lavc: lowercase the FRWU codec name)
got partially reverted by ec6402b7c5
(lavc: use designated initialisers for all codecs.)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
fed5ca255f
ra144enc: add sample_fmts list to ff_ra_144_encoder
This enables the user (i.e. avconv) to automatically convert to the supported
sample format if needed.
14 years ago
Justin Ruggles
818a3bdedf
smackaud: use uint8_t* for 8-bit output buffer type
This matches the output sample format and the range of the output values.
14 years ago
Justin Ruggles
375ca0aca8
smackaud: clip output samples
14 years ago
Justin Ruggles
c86c3c8017
smackaud: use sign_extend() for difference value instead of casting
14 years ago
Sebastien Zwickert
701e5348d4
vda: set destination image buffer attributes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
979c8de549
sipr: use a function pointer to select the decode_frame function
14 years ago
Justin Ruggles
3468ff1060
sipr: set mode based on block_align instead of bit_rate
the user is not required to set bit_rate
14 years ago
Justin Ruggles
0005f9a35b
sipr: do not needlessly set *data_size to 0 when returning an error
14 years ago
Justin Ruggles
9cb70ce34b
ra288: fix formatting of LOCAL_ALIGNED_16
14 years ago
Michael Niedermayer
82a1d57575
fraps: check overread per sample instead of per line
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
46082e6186
fraps: fix memleak
Found-by reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
26ae9a5d7c
pthreads: drop has_b_frames mangling, its buggy in many many ways,
not to mention race conditions and that its used for stream copy, used to determine IPB type by
applications and other things.
Fixes various frame drop/timestamp issues with frame multithreading.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
367468f148
Check extradata_size before accessing extradata.
Fixes ticket #627 .
14 years ago
shahriman AMS
c33d4916fb
VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
shahriman AMS
62622d04eb
vc1dec: move an if() block.
There are no reason for "if (c_valid) { ... }" to appear before
"if (b_valid) { ... }".
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
shahriman AMS
4bceeaf0c1
vc1dec: use correct hybrid prediction threshold.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
shahriman AMS
4344ce08f1
vc1dec: Partial rewrite of vc1_pred_mv()
The current code is a generalization of the earlier progressive MV
prediction code. This was supposed to predict MVs for both interlaced
and progressive pictures. But the interlaced MV prediction is buggy
and works mostly by luck.
This partially fixes interlaced MV prediction.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
shahriman AMS
6475a6e1ca
vc1dec: take ME precision into account while scaling MV predictors.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
11e155c219
ra288: try to fix 10l typo that breaks compile on some platforms
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
3bdfef31ac
fraps: check for overread
Fixeds Ticket619
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Reimar Döffinger
fd791675d4
Fix nonsense buffer hints.
The codec uses all previous frames as reference frames, so they
certainly must be preserved and readable.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
14 years ago
Alex Converse
1149fbc763
indeo3: Fix a fencepost error.
Found with asan and the venerable 1-dog.avi sample.
14 years ago
Justin Ruggles
2467d8d9ea
ra288: return error if input buffer is too small
14 years ago
Justin Ruggles
0131e70af5
ra288: utilize DSPContext.vector_fmul()
14 years ago
Justin Ruggles
03e5d6118c
ra288: use memcpy() to copy decoded samples to output
14 years ago
Justin Ruggles
f50b6be57d
mace: only calculate output buffer size once
14 years ago
Diego Biurrun
ce33320b30
Remove redundant filename self-references inside files.
Filenames are brittle across renames and add no useful information.
14 years ago
Diego Biurrun
9412f81138
indeo3data: add missing config.h #include for HAVE_BIGENDIAN
14 years ago
Diego Biurrun
276b995d85
x86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory
14 years ago
Michael Niedermayer
33feba3abf
Revert "lavc: Init AVFrame->opaque to AVCodecContext.opaque in avcodec_default_get_buffer()"
This commit causes problems for vlc, see https://trac.videolan.org/vlc/ticket/5518
This reverts commit 475fb67d0b .
14 years ago
Michael Niedermayer
ac3c895d93
Revert "Warn the user if lowres > max_lowres, set lowres to max_lowres and continue"
Changing the lowres value is risky because the user application may have a
local copy and not read back into it, or not undo some lowres dependant things.
A patch implementing this in ffplay is already on ffmpeg-dev, so this feature
should be back soon.
This reverts commit 125ea3ee06 .
14 years ago
Kostya Shishkov
f545e00677
BMV demuxer and decoder
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
c3d56f0ea3
proresenc: fix typo that caused the wrong dimensions to be used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Vitor Sessak
22e25c002e
mpegaudiodec: add SSE-optimized imdct36()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago