Michael Niedermayer
61c2cec957
pthreads: fix segfault due to the thread beimg killed before it has been allocated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
kaptnole
cb8db6423a
aacdec: Fix Sound fragments after seeking
Fixes Ticket420
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
b7581b5c83
cook: use a table for xor key rotation
This is simpler and avoids an invalid shift by 32 in the
aligned case.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
644bff6c9b
apedec: fix signed integer overflows
This bit manipulation is equivalent but avoids undefined
shifts and overflows.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
93c286e54f
qtrle: simplify 32-bit decode using intreadwrite macros
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
3bd1162a52
gif: fix invalid signed shifts
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Reimar Döffinger
7fb55e0b02
rtjpeg: simplify get_block() by using get_bits_left.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Reimar Döffinger
7a62ddb689
rtjpeg: check get_block return value for error.
This avoids crashes due to reading out-of-bounds.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Reimar Döffinger
f6afacdb3b
nuv: check per-frame header for validity.
Since it contains dimensions parsing an invalid one has rather
annoying effects.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Reimar Döffinger
785baa738a
nuv: use FFALIGN.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Carl Eugen Hoyos
1484b5dec5
flicvideo: check extradata_size before accessing extradata.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
5ace144fe0
fraps: check for overread.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
K.Y.H
51f316a997
cook: fix apparent typo in extradata parsing
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
488eec1044
lavc: update doxy to use nondeprecated API.
14 years ago
Michael Niedermayer
fc75e6f168
vc1dec: fix scantable for advanced P frames
Fixes: vc1 file from Ticket606
Fixes: vc1+vc1+++artifacts*.vc1
Fixes: mpeg+vc1+++salxxos.evo
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a3b3562b47
vc1dec: fix 10l typo
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
9e794d103c
vc1dec: drop damaged B frames
Fixes: vc1_error_spilt.avi of Ticket606
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
7d52f46db7
vc1dec: fix used ER flags in vc1_decode_b_blocks()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
1afe49b062
indeo3: out of array read checks for decode_plane()
Fixes: avi+indeo3+++1-dog.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
e9e642cbfb
indeo3: Check remaining bits in parse_bintree()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anatoly Nenashev
a7cfef2994
H264: Check if more RBSP data in PPS provided by current profile due to Annex A.
This patch also fix issue https://ffmpeg.org/trac/ffmpeg/ticket/685 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
cc276c85d1
Make channel layout masks unsigned
It makes more sense for a bit mask to use an unsigned type.
The change should be source and binary compatible on all
supported systems, hence micro version bump.
Fixes a few invalid shifts.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
00a856e3f9
dca: ARMv6 optimised decode_blockcode()
This is a hand-tuned version of the code with impossible parts of
the FASTDIV function ommitted.
2-5% faster overall on Cortex-A8.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Janne Grunau
117e2a30f2
frame-mt: return consumed packet size in ff_thread_decode_frame
This is required to fulfill avcodec_decode_video2() promise to return
the number of consumed bytes on success.
14 years ago
Michael Niedermayer
e421b79d01
indeo3: fix null pointer dereference in vulnerable.mov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Alex Zhukov
eb511ef636
yuv pixel formats support in openjpeg decoder + 10bit support
Signed-off-by: Alex Zhukov <zhukov.alex@gmail.com>
Reviewed-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Luca Barbato
7f1b427018
snow: split snow in snowdec and snowenc
The common non inlined code goes in snow.c, the common inlined code in
snow.h, tables move in snowdata.h (included only by snow.c)
14 years ago
Anton Khirnov
8b7412fe4e
tiffenc: deprecate using compression_level
14 years ago
Ronald S. Bultje
db431f7efe
h264: add support for decoding planar RGB images.
14 years ago
Michael Niedermayer
2bf09826c1
loco: Fix error handling.
Fixes null pointer dereference / http://www.google-melange.com/gci/task/view/google/gci2011/7120335
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Sergiy Gur'yev
32ed7da135
Fix adts format creation in aac+ encoder modified: libavcodec/libaacplus.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
c1848c4b26
pcmdec: remove unneeded resetting of samples pointer
14 years ago
Anton Khirnov
3eedd29bd7
bethsoftvideo: return proper consumed size for palette packets.
Also check for sufficient packet size.
14 years ago
Anton Khirnov
a94c769dad
tiffenc: add a private option for selecting compression algorithm
14 years ago
Mans Rullgard
3a0b72dee0
ARM: remove needless .text/.align directives
The 'function' macro already includes the appropriate
directives.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Alex Converse
963f685535
aacdec: Fix PS in ADTS.
Fixes File1.aac and Bug 80.
14 years ago
Justin Ruggles
0e8fdd41c2
dsputil: use cpuflags in x86 emu_edge_core
avoids passing around the extra argument among all the macros it uses
14 years ago
Justin Ruggles
395f2e70dd
dsputil: use movups instead of movdqu in ff_emu_edge_core_sse()
This allows emulated_edge_mc_sse() and gmc_sse() to be used under
AV_CPU_FLAG_SSE.
14 years ago
Justin Ruggles
05d1e45d1f
wma: initialize prev_block_len_bits, next_block_len_bits, and block_len_bits.
The initial values are not checked against the number of block sizes.
Initializing them to frame_len_bits will result in a block size index of 0
in these cases instead of something that might be out-of-range.
Fixes Bug 81.
14 years ago
Mans Rullgard
85770d6e56
Add libavutil/mathematics.h #includes for INFINITY
This fixes build errors in some environments.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Luca Barbato
e97e5a2e02
doxy: introduce an empty structure in libavcodec
14 years ago
Mans Rullgard
8ee2b4672f
ARM: add explicit .arch and .fpu directives to asm.S
This prevents build errors when compiler and assembler default
targets differ. Ideally each file would declare the highest
level it requires. This is however not easily possible as it
complicates assembling pre-armv6t2 code in Thumb-2 mode.
HAVE_NEON is used as indicator for ARMv7-A since no other
symbol exists for this and NEON is only available in this
variant.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Janne Grunau
0945eddec0
pthread: do not touch has_b_frames
Adding the thread count in frame level multithreading to has_b_frames
as an additional delay causes more problems than it solves.
For example inconsistent behaviour during timestamp calculation in
libavformat.
Thread count and frame level multithreading are both set by the user.
If the additional delay caused by frame level multithreading needs
to be considered in the calling code it has all information to take
it into account.
Should it become necessary to calculate a maximum delay inside
libavcodec it should be exported as its own field and not reusing
an existing field.
Based on a patch by Michael Niedermayer.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
ami_stuff
cf14c82227
[PATCH] IFF Amiga Continuous Bitmap (ACBM)decoder
Some sample IFF ACBM files can be found here:
http://aminet.net/package/dev/basic/ABdemos
Thanks to Peter Ross for his help with this patch.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mashiat Sarker Shakkhar
ea0323b0fa
call revert_cdlms()
14 years ago
Mashiat Sarker Shakkhar
6cf31ef263
Fix some loop conditions to prevent overreads
14 years ago
Mashiat Sarker Shakkhar
a3a8d5e0c1
Initialize pred in lms_predict()
14 years ago
Clément Bœsch
2f0f9a87d0
Fix various if parenthesis misplacements.
14 years ago
Michael Niedermayer
4931c8f0f1
svq1dec: call avcodec_set_dimensions() after dimensions changed.
Fixes NGS00148
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
eef5c35b43
vp3dec: Check coefficient index in vp3_dequant()
Fixes NGS00145
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago