Alexander Strasser
0605cb4332
vorbis dec: Remove obsolete comment
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Alexander Strasser
4f03c5d793
vorbis dec: cosmetics: Indent consistently
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Alexander Strasser
97f5f97108
vorbis dec: cosmetics: Indent CPP cond properly
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Alexander Strasser
07f06540f6
vorbis dec: Delete useless scopes, and reindent after scope deletion
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Justin Ruggles
c73d99e672
Separate format conversion DSP functions from DSPContext.
...
This will be beneficial for use with the audio conversion API without
requiring it to depend on all of dsputil.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
80ba1ddb58
Remove unneeded add bias from 3 functions.
...
DSPContext.vector_fmul_window()
DCADSPContext.lfe_fir()
SynthFilterContext.synth_filter_float()
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
9d06d7bce3
Remove the add bias hack for the C version of DSPContext.float_to_int16_*().
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
6eabb0d3ad
Change DSPContext.vector_fmul() from dst=dst*src to dest=src0*src1.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Frank Barchard
925aa96915
Second hunk from secrity fix from google.
...
The hunk is not fully understood but it just makes a check tighter so its
safer for us to apply until it is fully understood.
Might fix issue 2550 (and Chrome issue 68115 and unknown CERT issues).
Our bugtracker issue though should stay open until this has been fully
investiagted
Patch by Frank Barchard, fbarchard at google
Originally committed as revision 26368 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Frank Barchard
13184036a6
Check rangebits to avoid a possible crash.
...
Fixes issue 2548 (and Chrome issue 68115 and unknown CERT issues).
Patch by Frank Barchard, fbarchard at google
Originally committed as revision 26365 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Alex Converse
5fb2f1347e
10l: dx shouldn't exist.
...
sorry sorry sorry sorry
Originally committed as revision 25726 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Alex Converse
0611f67525
10l: vorbisdec: declare dy
...
Originally committed as revision 25725 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Gregory Maxwell
8455e8c7c0
vorbisdec: Fix floor1 decoding
...
An intermediate value in the floor 1 linear interpolation was
overflowing
resulting in obvious artifacts on some files.
e.g.
http://upload.wikimedia.org/wikipedia/commons/7/79/Big_Buck_Bunny_small.ogv
Prior to this fix 87 out of 128 64kbit/s mono files decoded with ffmpeg
have
lower PEAQ ODG values than the same files decoded with libvorbis. With
this
fix none of that set have significantly worse ODG values than libvorbis.
Fixes issue 2352
Patch by Gregory Maxwell <greg@xiph.org>
Originally committed as revision 25724 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Jason Garrett-Glaser
3dde66752d
Fix crashes in vorbis decoding found by zzuf
...
Fixes issue 2322.
Originally committed as revision 25591 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
David Conrad
c740f737e9
vorbisdec: Use int instead of uint16_fast_t for index variables
...
uint16_fast_t is unsigned int (or long) on Linux, which when compared
with int results in an unsigned compare.
Originally committed as revision 24994 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Alex Converse
51aaf51143
vorbis_dec: Change partition_class[] to uint8_t.
...
When sizeof(uint_fast8_t) >= sizeof(int) there are unintended size effects.
Originally committed as revision 24716 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Alex Converse
55aa55f2e1
vorbisdec: Return AVERROR(ENOMEM) on malloc() failure.
...
This is especially important because classifs can be very large.
Originally committed as revision 24676 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Alex Converse
366d919016
vorbisdec: Prevent a potential integer overflow.
...
If sizeof uint_fast8_t > 1 and sizeof size_t <= 4, the expression that mallocs
classifs is susceptible to integer overflow.
Originally committed as revision 24675 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
c934562c12
vorbisdec: change a uint_fast32_t to 'unsigned', fix llvm-gcc build
...
Originally committed as revision 24669 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Reimar Döffinger
961b0c41b9
Fix use of unintialized variable introduced in r20411.
...
Originally committed as revision 24005 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
3c35da2f7f
vorbisdec: remove variable-length arrays
...
Originally committed as revision 23960 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
a02bb835ac
vorbisdec: Take channels into account when checking against residue overflow
...
Fixes issue1969
Originally committed as revision 23812 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
54fdf5d150
vorbisdec: Fix header parsing with no floor1 partitions
...
Originally committed as revision 23811 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
780621b832
vorbisdec: Remove write-only variable
...
Originally committed as revision 23810 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
1429224b04
Move FFT parts from dsputil.h to fft.h
...
Originally committed as revision 22235 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Robert Swain
4a27f326c5
Add support for vorbis 6.1 and 7.1 channel configurations as per the new spec
...
http://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-800004.3.9
Originally committed as revision 21527 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
b2cc8111d6
More sane error message when extradata has not been set.
...
Originally committed as revision 20894 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
7a41027cc4
vorbis_dec: factor out duplicated code for index reading, bounds checking and
...
error message into a shared macro.
Originally committed as revision 20411 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Robert Swain
f640478b56
Reindent after channel layout commit from yesterday
...
Originally committed as revision 20156 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Robert Swain
53a71e1ba4
Add vorbis channel layout support according to those defined in the Vorbis I
...
specification
Originally committed as revision 20148 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
a7adcf29cf
whitespace cosmetics, prettyprinting, K&R coding style
...
Originally committed as revision 20080 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
0b8e7ab059
some more linebreak and brace placement cosmetics
...
Originally committed as revision 20071 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
5e56b30e1f
brace placement and linebreak cosmetics
...
Originally committed as revision 20070 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
c31afa5d24
Fix format string to match the types printed.
...
Originally committed as revision 20003 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
aedc98b0a4
Check submap indexes.
...
10_vorbis_submap_indexes.patch by chrome.
I am applying this even though Reimar had some comments to improve it as it fixes
a serious security issue and I do not want to leave such things unfixed.
Originally committed as revision 20001 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
0a01efd0aa
Make error return sign consistent.
...
Originally committed as revision 19997 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
36b7e983a6
Check begin/end/partition_size.
...
23_vorbis_sane_partition.patch by chrome.
Also this should be better documented but i prefer not to leave potential
security issues open due to missing documentation.
Originally committed as revision 19996 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
cdf1512eba
Check res_setup->books.
...
15_more_residue_book_indexes.patch by chrome.
Originally committed as revision 19992 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
993092dcd3
Check masterbook index and subclass book index.
...
14_floor_masterbook_index.patch by chrome
Originally committed as revision 19991 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
e5b0cfb541
Add checks for per-packet mode indexes and per-header mode mapping indexes.
...
12_vorbis_mode_indexes.patch by chrome
maybe exploitable
Originally committed as revision 19990 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
79a4258141
Check classbook value.
...
11_vorbis_residue_book_index.patch by chrome.
Originally committed as revision 19989 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
96651e790c
Fix book_idx check.
...
25_vorbis_floor0_index.patch by chrome.
Originally committed as revision 19984 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
d70fa8f131
Sanity checks for magnitude and angle.
...
26_vorbis_mag_angle_index.patch by chrome
Originally committed as revision 19983 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Google Chrome
08c8742cdb
= -> == typo.
...
27_vorbis_residue_loop_error.patch by chrome
Originally committed as revision 19982 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
98f7bcb119
Check dimensions against 0 too.
...
39_vorbis_zero_dims.patch from chrome
Originally committed as revision 19976 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
9062cd3544
Check validity of channels & samplerate.
...
This may be security relevant.
Based on 2 patches by chrome.
Originally committed as revision 19975 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago