Michael Niedermayer
9ebe6e3910
ffv1: fix integer overflow in quant table initialization
...
Fixes part of Ticket1372
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
97c281d5b7
ffv1: fix crash caused by version becoming inconsistent
...
Fixes part of Ticket1372
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0bae6661cd
fraps: fix version 0/1 input data size check.
...
Fixes array overread.
Fixes Ticket1371
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f23a2418fb
wmv1: check that the input buffer is large enough
...
Fixes null ptr deref
Fixes Ticket1367
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0d83edaba9
dct-test: give emms a memory clober.
...
Without this, the compiler in theory could attempt to keep
things in float registers across the emms which would cause
bad things to happen.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
461030a7ac
dct-test: perform emms before gettime().
...
This fixes the hypothetical case of a gettime implementation using floats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0766b6e3ec
rv20: fix lowres out of array read
...
Fixes Ticket1239
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
febc013dc5
yopdec: check frame oddness to be within supported limits
...
Fixes Ticket1365
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b6fdf8dea7
yopdec: check that palette fits in the packet
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
422418b664
dnxhd: replace asserts by av_asserts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
03ce421c13
8svx: fix crash
...
Fixes Ticket1377
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Piotr Bandurski
59352cc219
sgienc: add a limit for maximum supported resolution
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8a0efa9cc0
qdm2: fix incorrect error spam
...
Fixes Ticket1375
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e47e23698b
libmp3lame: add missing layout terminator
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7cb8663362
h264: Fail on DPC its not fully implemented
...
Fixes part of Ticket1369
Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b7d1488393
h264: move q0 scan tables into context
...
This fixes out of global array reads.
The alternative solutions of checking the index or modifying the VLC tables
to prevent the index going outside are each about 1-2 cpu cyclces slower
per coded 4x4 block.
The alternative of padding the global tables directly is more ugly and
moving them to the context should benefit cache locality.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b02cc2ddc6
mpeg4videodec: Check that cplx_estimation_* fits in the available space
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Piotr Bandurski
e03ddbcd91
gifenc: support resolutions up to 65535x65535
...
Maybe someone can add a check in the second gif encoder (rgb24), because I'm not sure where it should be added.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Piotr Bandurski
d2581dcca6
mjpegenc: add a limit for maximum supported resolution
...
jpeg does not allow more than 65000 pixels for width and height
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
824a6975ee
binkaudio: check number of channels
...
Fixes #1380 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
8aaa00c301
indeo5: check quant_mat
...
prevents out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0dfcd7e7e3
range coder test code: decoding errors are av_log_error not debug.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
21fdf1ccf0
ffv1: fix reading global header with CRC
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
6163d880c0
vp8: move block coeff arithcoder on stack.
...
This prevents gcc from assuming that contents of it may have changed
between calls to vp56_range_get_prob(), thus preventing countless (and
unnecessary) movs. Decoding of sintel trailer goes from (avg+SG) 9.796
+/- 0.003 to 9.635 +/- 0.010.
13 years ago
Christian Schmidt
d041dec3cb
pcm-mpeg: improve log message wording
...
We support every defined value for channel layout, bitrate and sample depth.
All other values are not unsupported, but reserved.
Update comments to say "are used" instead of "are known or exist".
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Michael Niedermayer
39f0a45a1a
h264_cavlc: check prefix before using it.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
32e60b6bfe
h264: increase scantable sizes to avoid overread
...
We could also check the index but this would slow speed critical code
down.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
fd4c1c0b70
truemotion1: Check index, fix out of array read
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
f5af8d5e76
exr: make message about missing feature more useful
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
8f61526978
iff: check if there is extradata
...
Fixes #1368 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
d66b0cd5c5
exr: alpha support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Lou Logan
73f3f6baff
lavc: clarify experimental codec message
...
Should be easier for new users to get a working output.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
d51e08bb89
lavc: switch from ts_end to duration in ff_ass_add_rect.
...
Make possible a end-to-presentation duration.
13 years ago
Hendrik Leppkes
c58bcead3b
pcm_mpeg: fix number of consumed bytes to include the header.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Vitor Sessak
bac0729d9e
x86: use new schema for ASM macros
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Stefano Sabatini
67b7631040
lavc: prettify printing of some codec tags which contains non alphanumeric characters
...
Make av_get_codec_tag_string() show codec tag string characters in a more
intelligible ways. For example the ascii char "@" is used as a number, so
should be displayed like "[64]" rather than as a printable character.
Apart alphanumeric chars, only the characters ' ' and '.' are used
literally in codec tags, all the other characters represent numbers.
13 years ago
Carl Eugen Hoyos
5cd947d81b
Fix r10k codec for widths that are not multiples of 64.
...
Fixes ticket #1358
13 years ago
Carl Eugen Hoyos
77cea13f05
Mark avui encoder experimental.
...
Some decoders require the AVID atom that we currently
do not write when encoding avui.
13 years ago
Michael Niedermayer
b4904e804d
jvdec: check videosize
...
Fixes null ptr dereference
fixes Ticket1364
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
50122084a6
motionpixels: check extradata size
...
Fixes null ptr derefernce
Fixes Ticket1363
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
849d4b0413
iff_ilbm: fix null ptr deref
...
Fixes Ticket1362
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
77a4c8b959
yop: check for missing extradata
...
Fixes null ptr deref
Fixes Ticket1361
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
01900fcc45
xan: fix out of array read
...
Fixes ticket1360
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1e5c7376c4
cdgraphics: Fix out of array write
...
Fixes Ticket1359
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
83de4f5fc9
Test extradata size before reading from extradata when decoding avui.
13 years ago
Vitor Sessak
2fd5e70869
x86: use new schema for ASM macros
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
ab7d6cb8f7
Support decoding fourcc YVYU.
...
Based on work by ami_stuff.
Fixes ticket #1352
13 years ago
Michael Niedermayer
a48b890392
aacdec: fix "may be used uninitialized" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
21e5dd93d7
aacpsy: fix "may be used uninitialized" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
ami_stuff
ca8623e1a5
Support some BOXX codecs.
...
Fixes a part of ticket #1352 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago