Carl Eugen Hoyos
2f06b56382
Support broken v210 files with 64 byte padding.
...
Fixes ticket #743 .
Reviewed-by: Paul B Mahol
13 years ago
Michael Niedermayer
6c0027bb39
dnxhddec: check that the indicated bit depth matches the tables.
...
Fixes crash
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8c59e0c362
xldec: move buffer size check up, it can be done before allocating a frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
94b42da696
xldec: Check that width is a multiple of 4
...
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
95510be8c3
avcodec: remove AVCodecContext.dsp_mask
...
This removes all references to AVCodecContext.dsp_mask and marks
it for eviction at the next version bump. It has been superseded
by av_set_cpu_flag_mask() which, unlike this field, works everywhere.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
5a35bd92ad
cook: check subacket count
...
Fixes out of array writes.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jakub Stachowski
93bf1aac6a
wmalossless: Ensure that last frame is not written again if nothing was decoded in current packet.
...
Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9849515214
Revert "h264: assembly version of get_cabac for x86_64 with PIC (v4)"
...
This broke compilation on darwin, revert until a better solution is found.
This reverts commit a812b599b5
.
13 years ago
Jan Ekström
b5c3f0b994
utvideo: general cosmetics
...
General cosmetics, such as keeping lines under 80 characters,
fixing a couple of typos (predition -> prediction) and a
general style fix that was pointed out by Derek when I was having
my sliced multithreading patch in review by him.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Roland Scheidegger
a812b599b5
h264: assembly version of get_cabac for x86_64 with PIC (v4)
...
This adds a hand-optimized assembly version for get_cabac much like the
existing one, but it works if the table offsets are RIP-relative.
Compared to the non-RIP-relative version this adds 2 lea instructions
and it needs one extra register.
There is a surprisingly large performance improvement over the c version (more
so than the generated assembly seems to suggest) just in get_cabac, I measured
roughly 40% faster for get_cabac on a K8. However, overall the difference is
not that big, I measured roughly 5% on a test clip on a K8 and a Core2.
Hopefully it still compiles on x86 32bit...
v2: incorporated feedback from Loren Merritt to avoid rip-relative movs
for every table, and got rid of unnecessary @GOTPCREL .
v3: apply similar fixes to the the decode_significance functions, and use
same macro arguments for non-pic case.
v4: prettify inline asm arguments, add a non-fast-cmov version (as I expect
the c code to be faster otherwise since both cmov and sbb suck hard on a
Prescott, even can't construct the mask with a 64bit shift as that's just as
terrible - it's quite difficult to find usable instructions on that chip...).
This is tested to work but not on a P4, in theory it _should_ be fast there.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
7eacd70fea
aac: Handle HE-AACv2 when sniffing a channel order.
13 years ago
Diego Biurrun
f973a85d4a
xxan: Remove write-only variable in xan_decode_frame_type0().
...
libavcodec/xxan.c:293:13: warning: variable ‘corr_end’ set but not used
13 years ago
Diego Biurrun
b1563d0cf9
ivi_common: Initialize a variable at declaration in ff_ivi_decode_blocks().
...
This simplifies the code a bit and avoids an uninitialized variable warning.
13 years ago
Michael Niedermayer
4a80ebe491
indeo3: Fix reallocation code so that it doesnt become inconsistent.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
b0e9edc44f
avcodec: add a cook parser to get subpacket duration
...
Fixes jittery video playback of rm files with cook audio.
13 years ago
Michael Niedermayer
2c22701c37
ac3dec: Check number of output channels.
...
Fixes out of array write.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1df49142ba
avsdec: Set dimensions instead of relying on the demuxer.
...
This fixes out of array writes.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
044f7275d3
ffv1: add optional per slice CRCs to detect undamaged slices.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b4fc53856d
ffv1: move most fields from the frame header to the slice headers with ffv1.3
...
This will allow decoding a single undamaged slice even if all others are lost
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9408316a85
ffv1: refactor slice decoding init loop so that the first is less a special case
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8456089f50
ffv1: clear slice state in decode_slice()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c7a435aab2
ffv1: split clear_slice_state() out so individual slices can be cleared.
...
This allows us to clear outside of the main thread for example.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
32883c0667
ffv1: split init_slice_state() out so individual slices can be inited
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d7a4c43f18
ffv1: Add a CRC check to the global header with version 1.3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a9cd12ee2a
mlpdec: set channel variables after checking them
...
This fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
ab75ad0116
Make targa-in-mov QuickTime-compatible for more colour-spaces.
...
See ticket #1228 .
13 years ago
Carl Eugen Hoyos
b4043ef504
Print unexpected length of flicvideo extradata.
13 years ago
Michael Niedermayer
c90b8a7480
h263dec: Check for width/height changes on frame skips too.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
2b98377935
dv: Initialize encoder tables during encoder init.
13 years ago
Michael Niedermayer
903ccf71b7
error_concealment: Check that the reference is not NULL
...
In normal picture decoding this does not need to be checked but as
error concealment is run in the case of errors the availability of
references is less certain. This may be fixed differently at some
point so that all references are always filled in before the EC
code, in which case this should then be changed to an assert()
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b066046046
error_concealment: make sure mbaff flags are 0 as interlaced is not supported.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b7c2358f62
error_concealment: switch asserts mostly to av_asserts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5e59a77cec
vc1dec: check that coded slice positions and interlacing match.
...
This fixes out of array writes
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
df23d64e07
h263dec: always enable picture dimensions reverting check.
...
This does not need to be limited to threads and may help with error
resilience on single thread
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
f2e4465522
dv: Replace some magic numbers by the appropriate #define.
13 years ago
Mohamed Naufal
f51b7e52a6
libstagefright: avoid memory leak
13 years ago
Carl Eugen Hoyos
dddd06d5b4
Make tiff-in-mov QuickTime-compatible for more colour-spaces.
...
Fixes ticket #1228 .
13 years ago
Mohamed Naufal
2343a99cf2
libstagefright: support more output pixel formats
13 years ago
Mohamed Naufal
1d48e88d41
libstagefright: avoid potential deadlock on output MediaBuffer
...
Maintain an output queue of AVFrames instead of MediaBuffers
so that the latter can be released early. This avoids a potential deadlock
between the stagefright decoder::read() and Stagefright_decode_frame()
13 years ago
Michael Niedermayer
a02f8ef1d2
h263dec: Prevent dimension changes from leaking on errors in header parsing.
...
This fixes crashes with frame threads caused by inconsistent context parameters.
Fixes Ticket1207
Found-by: John Villamil
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mohamed Naufal
7b915a4045
libstagefright: explicitly set positive timestamps as stagefright expects them so
13 years ago
Diego Biurrun
0f53601ac6
ppc: drop unused function dct_quantize_altivec()
...
This also allows dropping some PPC-specific ugliness from dsputil.[ch].
13 years ago
Diego Biurrun
aa3f2cb584
mpegaudiodec: Do not discard mp_decode_frame() return value.
...
This fixes the warning:
libavcodec/mpegaudiodec.c:1704:14: warning: variable ‘out_size’ set but not used
13 years ago
Michael Niedermayer
601d072e68
diracdec: check xybsep
...
Fixes division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e531e73a6f
indeo: Make sure the to be used vlc table has been initilaized.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Robert Nagy
c58290e5e5
Reset pts_correction state on codec flush.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8201092241
h264: reset current_slice on context reinit
...
This fixes a null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alexander Bokovikov
fc882b6e9c
Fix build dependencies for libvo-aac and libopencore-amrnb.
13 years ago
Michael Niedermayer
124eb7e476
aacdec: drop channel reseting code.
...
its no longer needed and causes a race with the flv demuxer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
aa0f84df5a
aacdec: disable new chan_config guessing code from libav.
...
It causes more problems than it solves.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago