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
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
Michael Niedermayer
dbe29db8cb
aacdec: more verbose overread error message
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
68526dbc29
aacdec: reduce difference to alexs version of aacdec.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
df8d5eaa14
avcodec_string: Favor AVCodecContext.codec over the default codec.
...
This improves output for formats with more than one AVCodec.
13 years ago
Alex Converse
b5d2bf964b
cook: Make constants passed to AV_BE2NE32C() unsigned to avoid signed overflow.
13 years ago
Michael Niedermayer
a66675268f
indeo5: dont run the wavelet transform over partially decoded bands.
...
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
sebist
7a3d2258a6
CrystalHD: Set aspect ratio.
...
Signed-off-by: sebist <sebok.istvan@gmail.com>
Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
sebist
e128182afd
CrystalHD: fix pStride value.
...
Signed-off-by: sebist <sebok.istvan@gmail.com>
Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ebf6d1d295
nuv: check buffer size before checking content.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
0f96f0d996
aacenc: Fix issues with huge values of bit_rate.
...
Do not pointlessly call ff_alloc_packet multiple times,
and fix an infinite loop by clamping the maximum
number of bits to target in the algorithm that does
not use lambda.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Diego Biurrun
db6e26d70c
dv_tablegen: Drop unnecessary av_unused attribute from dv_vlc_map_tableinit().
13 years ago
Kostya Shishkov
83632cbb11
proresenc: multithreaded quantiser search
13 years ago
Michael Niedermayer
84cd3729ef
imgconvert: fix regression with fate-gif colorspaces.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
9fb7e14635
aacdec: More robust output configuration.
...
Save the old output configuration (if it has been used
successfully) when trying a new configuration. If the new configuration
fails to decode, restore the last successful configuration.
13 years ago
Carl Eugen Hoyos
af2f655c02
faac: Fix multi-channel ordering
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago