summaryrefslogtreecommitdiffstats
path: root/libavcodec/vorbis_dec.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-1/+1
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: dx shouldn't exist.Alex Converse2010-11-121-1/+1
| | | | | | sorry sorry sorry sorry Originally committed as revision 25726 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: vorbisdec: declare dyAlex Converse2010-11-121-1/+1
| | | | Originally committed as revision 25725 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbisdec: Fix floor1 decodingGregory Maxwell2010-11-121-3/+3
| | | | | | | | | | | | | | | | | | | | | 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
* Fix crashes in vorbis decoding found by zzufJason Garrett-Glaser2010-10-271-11/+21
| | | | | | Fixes issue 2322. Originally committed as revision 25591 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbisdec: Use int instead of uint16_fast_t for index variablesDavid Conrad2010-08-301-1/+1
| | | | | | | 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
* vorbis_dec: Change partition_class[] to uint8_t.Alex Converse2010-08-061-1/+1
| | | | | | When sizeof(uint_fast8_t) >= sizeof(int) there are unintended size effects. Originally committed as revision 24716 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbisdec: Return AVERROR(ENOMEM) on malloc() failure.Alex Converse2010-08-031-0/+2
| | | | | | This is especially important because classifs can be very large. Originally committed as revision 24676 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbisdec: Prevent a potential integer overflow.Alex Converse2010-08-031-2/+2
| | | | | | | 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
* vorbisdec: change a uint_fast32_t to 'unsigned', fix llvm-gcc buildMåns Rullgård2010-08-021-2/+2
| | | | Originally committed as revision 24669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix use of unintialized variable introduced in r20411.Reimar Döffinger2010-07-021-1/+2
| | | | Originally committed as revision 24005 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbisdec: remove variable-length arraysMåns Rullgård2010-07-011-11/+23
| | | | Originally committed as revision 23960 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbisdec: Take channels into account when checking against residue overflowDavid Conrad2010-06-271-1/+1
| | | | | | Fixes issue1969 Originally committed as revision 23812 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbisdec: Fix header parsing with no floor1 partitionsDavid Conrad2010-06-271-1/+1
| | | | Originally committed as revision 23811 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbisdec: Remove write-only variableDavid Conrad2010-06-271-3/+0
| | | | Originally committed as revision 23810 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | 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
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-1/+1
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move FFT parts from dsputil.h to fft.hMåns Rullgård2010-03-061-0/+1
| | | | Originally committed as revision 22235 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for vorbis 6.1 and 7.1 channel configurations as per the new specRobert Swain2010-01-291-2/+2
| | | | | | 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
* More sane error message when extradata has not been set.Michael Niedermayer2009-12-181-1/+1
| | | | Originally committed as revision 20894 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbis_dec: factor out duplicated code for index reading, bounds checking andReimar Döffinger2009-10-281-58/+26
| | | | | | error message into a shared macro. Originally committed as revision 20411 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after channel layout commit from yesterdayRobert Swain2009-10-031-2/+2
| | | | Originally committed as revision 20156 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add vorbis channel layout support according to those defined in the Vorbis IRobert Swain2009-10-021-0/+13
| | | | | | specification Originally committed as revision 20148 to svn://svn.ffmpeg.org/ffmpeg/trunk
* whitespace cosmetics, prettyprinting, K&R coding styleDiego Biurrun2009-09-291-568/+563
| | | | Originally committed as revision 20080 to svn://svn.ffmpeg.org/ffmpeg/trunk
* some more linebreak and brace placement cosmeticsDiego Biurrun2009-09-281-3/+3
| | | | Originally committed as revision 20071 to svn://svn.ffmpeg.org/ffmpeg/trunk
* brace placement and linebreak cosmeticsDiego Biurrun2009-09-281-89/+99
| | | | Originally committed as revision 20070 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix format string to match the types printed.Reimar Döffinger2009-09-231-1/+1
| | | | Originally committed as revision 20003 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check submap indexes.Google Chrome2009-09-231-2/+13
| | | | | | | | 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
* Make error return sign consistent.Michael Niedermayer2009-09-231-30/+30
| | | | Originally committed as revision 19997 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check begin/end/partition_size.Google Chrome2009-09-231-0/+9
| | | | | | | | 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
* Check res_setup->books.Google Chrome2009-09-231-1/+6
| | | | | | 15_more_residue_book_indexes.patch by chrome. Originally committed as revision 19992 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check masterbook index and subclass book index.Google Chrome2009-09-231-2/+12
| | | | | | 14_floor_masterbook_index.patch by chrome Originally committed as revision 19991 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add checks for per-packet mode indexes and per-header mode mapping indexes.Google Chrome2009-09-231-1/+9
| | | | | | | 12_vorbis_mode_indexes.patch by chrome maybe exploitable Originally committed as revision 19990 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check classbook value.Google Chrome2009-09-231-0/+4
| | | | | | 11_vorbis_residue_book_index.patch by chrome. Originally committed as revision 19989 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix book_idx check.Google Chrome2009-09-231-3/+2
| | | | | | 25_vorbis_floor0_index.patch by chrome. Originally committed as revision 19984 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Sanity checks for magnitude and angle.Google Chrome2009-09-231-1/+8
| | | | | | 26_vorbis_mag_angle_index.patch by chrome Originally committed as revision 19983 to svn://svn.ffmpeg.org/ffmpeg/trunk
* = -> == typo.Google Chrome2009-09-231-1/+1
| | | | | | 27_vorbis_residue_loop_error.patch by chrome Originally committed as revision 19982 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check dimensions against 0 too.Michael Niedermayer2009-09-231-2/+2
| | | | | | 39_vorbis_zero_dims.patch from chrome Originally committed as revision 19976 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check validity of channels & samplerate.Michael Niedermayer2009-09-231-2/+10
| | | | | | | This may be security relevant. Based on 2 patches by chrome. Originally committed as revision 19975 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge FFTContext and MDCTContextMåns Rullgård2009-09-201-1/+1
| | | | Originally committed as revision 19931 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure that values generated for ff_vorbis_len2vlc inReimar Döffinger2009-07-081-1/+1
| | | | | | vorbis_parse_setup_hdr_codebooks are in the valid range (<=32). Originally committed as revision 19373 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use iMDCT output scaling to simplify ffvorbis and make it slightly faster.Siarhei Siamashka2009-05-201-19/+3
| | | | Originally committed as revision 18879 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix for a problem with inverted sign of output data from ffvorbis decoder.Siarhei Siamashka2009-05-201-2/+2
| | | | | | | | Now the sign of audio samples in ffvorbis output is the same as in original uncompressed audio file and this also allows the use of tiny_psnr to compare ffvorbis with libvorbis/tremor. Originally committed as revision 18878 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support for getting (i)MDCT output multiplied by a constant scaling factor.Siarhei Siamashka2009-05-161-2/+2
| | | | | | | | Scaling (i)MDCT output has no runtime overhead and can be used to improve performance of audio codecs. All the changes are only needed in 'ff_mdct_init' function and slow down initialization a bit. Originally committed as revision 18855 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix for issue #829 ("ffvorbis outputs crackling sound, libvorbis plays fine")Siarhei Siamashka2009-05-141-1/+1
| | | | | | | | | | | | | | This was off-by-one bug which affects floor0 encoded files. Tracked down by valgrind (was reported as the use of uninitialized memory). With this patch applied, tiny_psnr now reports the following when ffvorbis is compared to libvorbis-1.0beta4 output for 'lsp-test.ogg' sample: stddev: 0.76 PSNR: 98.69 bytes: 3498380/ 3498452 Output from libvorbis-1.2 is substantially different: stddev: 132.57 PSNR: 53.87 bytes: 3498424/ 3498496 Originally committed as revision 18821 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename all vorbis encoder related typedefs to not use _t for POSIX compatibilityOded Shimon2008-12-121-2/+2
| | | | Originally committed as revision 16076 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix memleak for currupt input.Carl Eugen Hoyos2008-10-011-0/+1
| | | | Originally committed as revision 15507 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud