Michael Niedermayer
628c9dcca3
j2kdec: fix division by zero, check tile dimensions for validity
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
f2ed115899
Make the palette in Wing Commander III mve files opaque.
14 years ago
Jean First
0d4a77472a
libopenjpeg: support decoding with bits per pixel greater than 8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Approved-by: Alex Zhukov
14 years ago
Michael Niedermayer
7de733b752
pthread: sysctl.h needs param.h on openbsd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Janne Grunau
5c33a9a5c1
threads: check defines before using them in automatic thread detection
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Janne Grunau
8d4668cc5f
pthread: include sys/types.h before sys/sysctl.h
Fixes compilation on FreeBSD with clang 3.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Reinhard Tartler
8b94df0f20
vp3dec: Check coefficient index in vp3_dequant()
Based on a patch by Michael Niedermayer <michaelni@gmx.at>
Fixes NGS00145, CVE-2011-4352
Found-by: Phillip Langlois
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
14 years ago
Michael Niedermayer
6e24b9488e
svq1dec: call avcodec_set_dimensions() after dimensions changed.
Fixes NGS00148, CVE-2011-4579
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Janne Grunau
7052618c7e
threads: check defines before using them in automatic thread detection
14 years ago
Janne Grunau
846dca1aa3
pthread: include sys/types.h before sys/sysctl.h
Fixes compilation on FreeBSD with clang 3.
14 years ago
Carl Eugen Hoyos
8e88145d0b
Release buffers after encoding svq1.
Fixes ticket #820 .
14 years ago
Carl Eugen Hoyos
e5de928923
Fix a possible endless loop when decoding aac.
Fixes ticket #789 .
14 years ago
Anton Khirnov
d09298f0d6
4xm: remove unused variables.
14 years ago
Alexander Strange
bc6a3bd4a5
h264: Fix a possible overread in decode_nal_units()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Mashiat Sarker Shakkhar
70dd5a603c
Perform dequantization of channel coefficients
14 years ago
Mashiat Sarker Shakkhar
cf6284b273
Perform inverse inter-channel decorrelation and ac-filter
14 years ago
Mashiat Sarker Shakkhar
7409210647
Implement revert_inter_ch_decorr() and revert_acfilter()
14 years ago
Michael Niedermayer
ae7a6441df
h264: Decode short VUI without error
Fixes 47j9R7PXBep.mov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Sergey Radionov
01eb9805f3
w32thread: call ResetEvent() in pthread_cond_broadcast().
Also add "volatile" to broadcast flag (since it is used from
multiple threads).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Gaurav Narula
ad3161ec1d
kvmc: fix invalid reads
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Shitiz Garg
355d917c0b
4xm: Add a check in decode_i_frame to prevent buffer overreads
Fixes bugzilla #135
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Paul B Mahol
01a01bf8bd
adpcm: fix IMA SMJPEG decoding
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Janne Grunau
c32e4029d9
options: set minimum for "threads" to zero
A negative number of threads does not make sense and 0 is used for
autodetection. Adds a symbolic name for autodetection.
14 years ago
Janne Grunau
b9e2226972
bsd: use number of logical CPUs as automatic thread count
14 years ago
Janne Grunau
ad29ecbff0
windows: use number of CPUs as automatic thread count
14 years ago
Janne Grunau
ea4d5f4837
linux: use number of CPUs as automatic thread count
Use sched_getaffinity to determine the number of logical CPUs.
Limits the number of threads to 16 since slice threading of H.264
seems to be buggy with more than 16 threads.
14 years ago
Janne Grunau
f77f640b30
pthreads: reset active_thread_type when slice thread_init returrns early
14 years ago
Paul B. Mahol
fede015468
v410dec: include correct headers
This file does not use anything from get_bits.h but needs
intreadwrite.h.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Mashiat Sarker Shakkhar
10406b95ad
Enable inverse-MCLMS filter
14 years ago
Mashiat Sarker Shakkhar
302d5df834
Fix inverse-MCLMS filtering routines
14 years ago
Diego Biurrun
aaf47bcde7
Drop ALT_ prefix from BITSTREAM_READER_LE name.
The prefix is a historic remnant that probably meant "alternative".
Now that the A32 bitstream reader has been dropped it makes no sense anymore.
14 years ago
Justin Ruggles
9a3f10695a
ra144enc: zero the reflection coeffs if the filter is unstable
fixes use of uninitialized values if the filter is still unstable after using
the previous frame lpc coefficients.
14 years ago
Alex Converse
4bf3c8f226
mov: Don't stick the QuickTime field ordering atom in extradata.
The 'fiel' atoms can be found in H.264 tracks clobbering the extradata.
MJPEG supports non field based extradata, and this data should be
preserved when copying.
14 years ago
Michael Niedermayer
f0e90e0035
lavc: make 100 the base for the micro version number.
This way ffmpeg can be distinguished from the fork by a user
application or a encoded file by a decoder.
The highest value micro had, in the past, that i could find, was 6
thus 100 should be safe.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a40f43db64
error_concealment: optimize guess_dc()
Fixes Ticket811
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
2b73cddd40
proresdec: Check yuv slice data sizes.
Fixes overread
Fixes Ticket812
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
f264d336fe
truespeech: fix invalid reads in truespeech_apply_twopoint_filter()
fixes Bug 171
14 years ago
Martin Storsjö
ce94948198
nellymoserdec: Indicate that the decoder can handle changed parameters
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
f13db94d0a
libavcodec: Apply parameter change side data when decoding audio
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
fe75dc8583
libavcodec: Define a side data type for parameter changes
Also define a codec capability for codecs that can handle
parameters changed externally between decoded packets.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
132846b0c8
aacdec: Handle new extradata passed as side data
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
195c123cc8
libavcodec: Define a side data type for new extradata
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
a40f6a5c69
mpeg12dec: reset first_field with picture_structure changes.
Fixes Ticket809
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
c3846e3eba
lavc: Do not fail audio decoding if user has set a custom get_buffer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
6fdb2ce34a
x86: Tighten register constraints for decode_significance*_x86.
On 32-bit OS X with gcc 4.0/4.2 and shared libraries enabled, the ebx register
is not available, but required to assemble the functions.
This reverts commit 8742a4f to a simplified version of the original constraints.
14 years ago
Diego Biurrun
c18365402b
Replace Subversion revisions in comments by Git hashes.
14 years ago
Diego Biurrun
8742a4ff87
h264_cabac: synchronize decode_significance_*_x86 conditionals
The definition and the call site where under different #ifdefs.
14 years ago
Sergey Radionov
2003a29284
w32threads: wait for the waked thread in pthread_cond_signal.
This fixes a deadlock VLC triggered with multithreaded decoding. The
wait forces one of the current waiters to wake and not the thread
which calls pthread_cond_signal() itself.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Alex Converse
021914e27f
aacdec: Cleanup decode_ics_info.
Remove unused function argument.
Return an AVERROR.
Don't zero out ICS on failure.
14 years ago
Michael Niedermayer
134aaa79f7
indeo3: Fix null ptr dereference
Fixes Ticket804
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago