diff --git a/media/libvorbis/README_MOZILLA b/media/libvorbis/README_MOZILLA index 1211ac074b33..5bd2a9d3fdf1 100644 --- a/media/libvorbis/README_MOZILLA +++ b/media/libvorbis/README_MOZILLA @@ -1,10 +1,10 @@ -The source from this directory was copied from the libvorbis -subversion repository using the update.sh script. The only changes +The source from this directory was copied from the vorbis +git repository using the update.sh script. The only changes made were those applied by update.sh and the addition/update of Makefile.in and moz.build files for the Mozilla build system. -The upstream version used was libvorbis 1.3.5. -https://svn.xiph.org/tags/vorbis/libvorbis-1.3.5@19464 +The upstream version used was vorbis v1.3.5-48-ge5b1378 +from https://git.xiph.org/vorbis.git Some files are renamed during the copy to prevent clashes with object file names with other Mozilla libraries. diff --git a/media/libvorbis/include/vorbis/codec.h b/media/libvorbis/include/vorbis/codec.h index 999aa33510aa..f082241d1330 100644 --- a/media/libvorbis/include/vorbis/codec.h +++ b/media/libvorbis/include/vorbis/codec.h @@ -11,7 +11,7 @@ ******************************************************************** function: libvorbis codec headers - last mod: $Id: codec.h 17021 2010-03-24 09:29:41Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/include/vorbis/vorbisenc.h b/media/libvorbis/include/vorbis/vorbisenc.h index 02332b50caff..8c51ec155eab 100644 --- a/media/libvorbis/include/vorbis/vorbisenc.h +++ b/media/libvorbis/include/vorbis/vorbisenc.h @@ -11,7 +11,7 @@ ******************************************************************** function: vorbis encode-engine setup - last mod: $Id: vorbisenc.h 17021 2010-03-24 09:29:41Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/backends.h b/media/libvorbis/lib/backends.h index ff5bcc95fe7e..4a7e2719d841 100644 --- a/media/libvorbis/lib/backends.h +++ b/media/libvorbis/lib/backends.h @@ -12,7 +12,7 @@ function: libvorbis backend and mapping structures; needed for static mode headers - last mod: $Id: backends.h 16962 2010-03-11 07:30:34Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/bitrate.h b/media/libvorbis/lib/bitrate.h index db48fcb645a0..9f0a0179fd67 100644 --- a/media/libvorbis/lib/bitrate.h +++ b/media/libvorbis/lib/bitrate.h @@ -11,7 +11,7 @@ ******************************************************************** function: bitrate tracking and management - last mod: $Id: bitrate.h 13293 2007-07-24 00:09:47Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/books/coupled/res_books_51.h b/media/libvorbis/lib/books/coupled/res_books_51.h index 93910ff4813c..52f4530e1b54 100644 --- a/media/libvorbis/lib/books/coupled/res_books_51.h +++ b/media/libvorbis/lib/books/coupled/res_books_51.h @@ -11,7 +11,7 @@ ******************************************************************** * * function: static codebooks for 5.1 surround - * last modified: $Id: res_books_51.h 19057 2014-01-22 12:32:31Z xiphmont $ + * last modified: $Id$ * ********************************************************************/ diff --git a/media/libvorbis/lib/books/coupled/res_books_stereo.h b/media/libvorbis/lib/books/coupled/res_books_stereo.h index 9a9049f6ed93..d87000f21ca8 100644 --- a/media/libvorbis/lib/books/coupled/res_books_stereo.h +++ b/media/libvorbis/lib/books/coupled/res_books_stereo.h @@ -11,7 +11,7 @@ ******************************************************************** function: static codebooks autogenerated by huff/huffbuld - last modified: $Id: res_books_stereo.h 19057 2014-01-22 12:32:31Z xiphmont $ + last modified: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/books/floor/floor_books.h b/media/libvorbis/lib/books/floor/floor_books.h index e925313f7b38..e4c21f31704c 100644 --- a/media/libvorbis/lib/books/floor/floor_books.h +++ b/media/libvorbis/lib/books/floor/floor_books.h @@ -11,7 +11,7 @@ ******************************************************************** function: static codebooks autogenerated by huff/huffbuld - last modified: $Id: floor_books.h 19057 2014-01-22 12:32:31Z xiphmont $ + last modified: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/books/uncoupled/res_books_uncoupled.h b/media/libvorbis/lib/books/uncoupled/res_books_uncoupled.h index 736353b675b7..4d27c0834d3e 100644 --- a/media/libvorbis/lib/books/uncoupled/res_books_uncoupled.h +++ b/media/libvorbis/lib/books/uncoupled/res_books_uncoupled.h @@ -11,7 +11,7 @@ ******************************************************************** function: static codebooks autogenerated by huff/huffbuld - last modified: $Id: res_books_uncoupled.h 19057 2014-01-22 12:32:31Z xiphmont $ + last modified: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/codebook.h b/media/libvorbis/lib/codebook.h index 537d6c12d304..6fe49d13f87b 100644 --- a/media/libvorbis/lib/codebook.h +++ b/media/libvorbis/lib/codebook.h @@ -11,7 +11,7 @@ ******************************************************************** function: basic shared codebook operations - last mod: $Id: codebook.h 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/codec_internal.h b/media/libvorbis/lib/codec_internal.h index de1bccaedf44..2dcfbc5dfe1c 100644 --- a/media/libvorbis/lib/codec_internal.h +++ b/media/libvorbis/lib/codec_internal.h @@ -11,7 +11,7 @@ ******************************************************************** function: libvorbis codec headers - last mod: $Id: codec_internal.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/envelope.h b/media/libvorbis/lib/envelope.h index fd15fb32a73b..50c7ca99f53d 100644 --- a/media/libvorbis/lib/envelope.h +++ b/media/libvorbis/lib/envelope.h @@ -11,7 +11,7 @@ ******************************************************************** function: PCM data envelope analysis and manipulation - last mod: $Id: envelope.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/highlevel.h b/media/libvorbis/lib/highlevel.h index e38f370fd6cc..0b18181c5370 100644 --- a/media/libvorbis/lib/highlevel.h +++ b/media/libvorbis/lib/highlevel.h @@ -11,7 +11,7 @@ ******************************************************************** function: highlevel encoder setup struct separated out for vorbisenc clarity - last mod: $Id: highlevel.h 17195 2010-05-05 21:49:51Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/lookup.h b/media/libvorbis/lib/lookup.h index f8b5b82730e6..02fb3ff50f50 100644 --- a/media/libvorbis/lib/lookup.h +++ b/media/libvorbis/lib/lookup.h @@ -11,7 +11,7 @@ ******************************************************************** function: lookup based functions - last mod: $Id: lookup.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/lookup_data.h b/media/libvorbis/lib/lookup_data.h index 2424a1b3864f..a60e7b8c70a0 100644 --- a/media/libvorbis/lib/lookup_data.h +++ b/media/libvorbis/lib/lookup_data.h @@ -11,7 +11,7 @@ ******************************************************************** function: lookup data; generated by lookups.pl; edit there - last mod: $Id: lookup_data.h 16037 2009-05-26 21:10:58Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/lpc.h b/media/libvorbis/lib/lpc.h index 39d237601bb1..2091afa171cd 100644 --- a/media/libvorbis/lib/lpc.h +++ b/media/libvorbis/lib/lpc.h @@ -11,7 +11,7 @@ ******************************************************************** function: LPC low level routines - last mod: $Id: lpc.h 16037 2009-05-26 21:10:58Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/lsp.h b/media/libvorbis/lib/lsp.h index bacfb0971f99..44d927492e74 100644 --- a/media/libvorbis/lib/lsp.h +++ b/media/libvorbis/lib/lsp.h @@ -11,7 +11,7 @@ ******************************************************************** function: LSP (also called LSF) conversion routines - last mod: $Id: lsp.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/masking.h b/media/libvorbis/lib/masking.h index 3576ab788547..7d1082f5b437 100644 --- a/media/libvorbis/lib/masking.h +++ b/media/libvorbis/lib/masking.h @@ -11,7 +11,7 @@ ******************************************************************** function: masking curve data for psychoacoustics - last mod: $Id: masking.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/mdct.h b/media/libvorbis/lib/mdct.h index 3ed94333c518..289a8e71d55f 100644 --- a/media/libvorbis/lib/mdct.h +++ b/media/libvorbis/lib/mdct.h @@ -11,7 +11,7 @@ ******************************************************************** function: modified discrete cosine transform prototypes - last mod: $Id: mdct.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/misc.h b/media/libvorbis/lib/misc.h index 73b451989859..a481c7302bdd 100644 --- a/media/libvorbis/lib/misc.h +++ b/media/libvorbis/lib/misc.h @@ -11,7 +11,7 @@ ******************************************************************** function: miscellaneous prototypes - last mod: $Id: misc.h 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/floor_all.h b/media/libvorbis/lib/modes/floor_all.h index 4292be326e25..fb4d1b0a0cda 100644 --- a/media/libvorbis/lib/modes/floor_all.h +++ b/media/libvorbis/lib/modes/floor_all.h @@ -11,7 +11,7 @@ ******************************************************************** function: key floor settings - last mod: $Id: floor_all.h 17050 2010-03-26 01:34:42Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/psych_11.h b/media/libvorbis/lib/modes/psych_11.h index 844a8ed3cd19..2624181565b9 100644 --- a/media/libvorbis/lib/modes/psych_11.h +++ b/media/libvorbis/lib/modes/psych_11.h @@ -11,7 +11,7 @@ ******************************************************************** function: 11kHz settings - last mod: $Id: psych_11.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/psych_16.h b/media/libvorbis/lib/modes/psych_16.h index 1c10b3954e36..5c694dc36192 100644 --- a/media/libvorbis/lib/modes/psych_16.h +++ b/media/libvorbis/lib/modes/psych_16.h @@ -11,7 +11,7 @@ ******************************************************************** function: 16kHz settings - last mod: $Id: psych_16.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/psych_44.h b/media/libvorbis/lib/modes/psych_44.h index f05c03265352..e46a0f46c516 100644 --- a/media/libvorbis/lib/modes/psych_44.h +++ b/media/libvorbis/lib/modes/psych_44.h @@ -11,7 +11,7 @@ ******************************************************************** function: key psychoacoustic settings for 44.1/48kHz - last mod: $Id: psych_44.h 16962 2010-03-11 07:30:34Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/psych_8.h b/media/libvorbis/lib/modes/psych_8.h index 0e2dd5737197..dd8777190a8d 100644 --- a/media/libvorbis/lib/modes/psych_8.h +++ b/media/libvorbis/lib/modes/psych_8.h @@ -11,7 +11,7 @@ ******************************************************************** function: 8kHz psychoacoustic settings - last mod: $Id: psych_8.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/residue_16.h b/media/libvorbis/lib/modes/residue_16.h index dcaca5451e5c..bb28e7639f84 100644 --- a/media/libvorbis/lib/modes/residue_16.h +++ b/media/libvorbis/lib/modes/residue_16.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel residue templates 16/22kHz - last mod: $Id: residue_16.h 16962 2010-03-11 07:30:34Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/residue_44.h b/media/libvorbis/lib/modes/residue_44.h index 236c18341b9e..2e8ad5371521 100644 --- a/media/libvorbis/lib/modes/residue_44.h +++ b/media/libvorbis/lib/modes/residue_44.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel residue templates for 32/44.1/48kHz - last mod: $Id: residue_44.h 16962 2010-03-11 07:30:34Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/residue_44p51.h b/media/libvorbis/lib/modes/residue_44p51.h index a52cc5245e5e..103e960d72ad 100644 --- a/media/libvorbis/lib/modes/residue_44p51.h +++ b/media/libvorbis/lib/modes/residue_44p51.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel residue templates for 32/44.1/48kHz uncoupled - last mod: $Id: residue_44p51.h 19013 2013-11-12 04:04:50Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/residue_44u.h b/media/libvorbis/lib/modes/residue_44u.h index 92c4a09ce319..6742aa2c3246 100644 --- a/media/libvorbis/lib/modes/residue_44u.h +++ b/media/libvorbis/lib/modes/residue_44u.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel residue templates for 32/44.1/48kHz uncoupled - last mod: $Id: residue_44u.h 16962 2010-03-11 07:30:34Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/residue_8.h b/media/libvorbis/lib/modes/residue_8.h index 94c6d84c440b..b9edd4fa797a 100644 --- a/media/libvorbis/lib/modes/residue_8.h +++ b/media/libvorbis/lib/modes/residue_8.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel residue templates 8/11kHz - last mod: $Id: residue_8.h 16962 2010-03-11 07:30:34Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_11.h b/media/libvorbis/lib/modes/setup_11.h index 4c2d619ca292..95d8c3e11ac3 100644 --- a/media/libvorbis/lib/modes/setup_11.h +++ b/media/libvorbis/lib/modes/setup_11.h @@ -11,7 +11,7 @@ ******************************************************************** function: 11kHz settings - last mod: $Id: setup_11.h 16894 2010-02-12 20:32:12Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_16.h b/media/libvorbis/lib/modes/setup_16.h index 336007f98e34..13581ea8a3fc 100644 --- a/media/libvorbis/lib/modes/setup_16.h +++ b/media/libvorbis/lib/modes/setup_16.h @@ -11,7 +11,7 @@ ******************************************************************** function: 16kHz settings - last mod: $Id: setup_16.h 16894 2010-02-12 20:32:12Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_22.h b/media/libvorbis/lib/modes/setup_22.h index 4fd5e57111a6..6613c990dfd5 100644 --- a/media/libvorbis/lib/modes/setup_22.h +++ b/media/libvorbis/lib/modes/setup_22.h @@ -11,7 +11,7 @@ ******************************************************************** function: 22kHz settings - last mod: $Id: setup_22.h 17026 2010-03-25 05:00:27Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_32.h b/media/libvorbis/lib/modes/setup_32.h index 2275ac961536..b02c04d2433d 100644 --- a/media/libvorbis/lib/modes/setup_32.h +++ b/media/libvorbis/lib/modes/setup_32.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel settings for 32kHz - last mod: $Id: setup_32.h 16894 2010-02-12 20:32:12Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_44.h b/media/libvorbis/lib/modes/setup_44.h index 3b88a89ac565..958e2f8cf877 100644 --- a/media/libvorbis/lib/modes/setup_44.h +++ b/media/libvorbis/lib/modes/setup_44.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel settings for 44.1/48kHz - last mod: $Id: setup_44.h 16962 2010-03-11 07:30:34Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_44p51.h b/media/libvorbis/lib/modes/setup_44p51.h index 67d997960830..e46468a15b97 100644 --- a/media/libvorbis/lib/modes/setup_44p51.h +++ b/media/libvorbis/lib/modes/setup_44p51.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel settings for 44.1/48kHz 5.1 surround modes - last mod: $Id: setup_44p51.h 19013 2013-11-12 04:04:50Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_44u.h b/media/libvorbis/lib/modes/setup_44u.h index 568b5f8959da..aeea07f91a2f 100644 --- a/media/libvorbis/lib/modes/setup_44u.h +++ b/media/libvorbis/lib/modes/setup_44u.h @@ -11,7 +11,7 @@ ******************************************************************** function: toplevel settings for 44.1/48kHz uncoupled modes - last mod: $Id: setup_44u.h 16962 2010-03-11 07:30:34Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_8.h b/media/libvorbis/lib/modes/setup_8.h index 14c48374fa11..c2f27e4803e9 100644 --- a/media/libvorbis/lib/modes/setup_8.h +++ b/media/libvorbis/lib/modes/setup_8.h @@ -11,7 +11,7 @@ ******************************************************************** function: 8kHz settings - last mod: $Id: setup_8.h 16894 2010-02-12 20:32:12Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/modes/setup_X.h b/media/libvorbis/lib/modes/setup_X.h index a69f5d40a246..8b622548ae52 100644 --- a/media/libvorbis/lib/modes/setup_X.h +++ b/media/libvorbis/lib/modes/setup_X.h @@ -11,7 +11,7 @@ ******************************************************************** function: catch-all toplevel settings for q modes only - last mod: $Id: setup_X.h 16894 2010-02-12 20:32:12Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/os.h b/media/libvorbis/lib/os.h index 8bc3e5fe9ce4..047e044ccd52 100644 --- a/media/libvorbis/lib/os.h +++ b/media/libvorbis/lib/os.h @@ -13,7 +13,7 @@ ******************************************************************** function: #ifdef jail to whip a few platforms into the UNIX ideal. - last mod: $Id: os.h 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/psy.h b/media/libvorbis/lib/psy.h index c1ea8244014d..8686f94cd659 100644 --- a/media/libvorbis/lib/psy.h +++ b/media/libvorbis/lib/psy.h @@ -11,7 +11,7 @@ ******************************************************************** function: random psychoacoustics (not including preecho) - last mod: $Id: psy.h 16946 2010-03-03 16:12:40Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/registry.h b/media/libvorbis/lib/registry.h index 3ae04776d85f..d8e0d591212b 100644 --- a/media/libvorbis/lib/registry.h +++ b/media/libvorbis/lib/registry.h @@ -11,7 +11,7 @@ ******************************************************************** function: registry for time, floor, res backends and channel mappings - last mod: $Id: registry.h 15531 2008-11-24 23:50:06Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/scales.h b/media/libvorbis/lib/scales.h index 613f796e770f..5f4dc36ed3dc 100644 --- a/media/libvorbis/lib/scales.h +++ b/media/libvorbis/lib/scales.h @@ -11,7 +11,7 @@ ******************************************************************** function: linear scale -> dB, Bark and Mel scales - last mod: $Id: scales.h 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/smallft.h b/media/libvorbis/lib/smallft.h index 456497326cac..30df9606c97c 100644 --- a/media/libvorbis/lib/smallft.h +++ b/media/libvorbis/lib/smallft.h @@ -11,7 +11,7 @@ ******************************************************************** function: fft transform - last mod: $Id: smallft.h 13293 2007-07-24 00:09:47Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_analysis.c b/media/libvorbis/lib/vorbis_analysis.c index 01aa6f30dbd7..9609cd5c282f 100644 --- a/media/libvorbis/lib/vorbis_analysis.c +++ b/media/libvorbis/lib/vorbis_analysis.c @@ -11,7 +11,7 @@ ******************************************************************** function: single-block PCM analysis mode dispatch - last mod: $Id: analysis.c 16226 2009-07-08 06:43:49Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_bitrate.c b/media/libvorbis/lib/vorbis_bitrate.c index 3a71b1dc23c9..e261bb1737ac 100644 --- a/media/libvorbis/lib/vorbis_bitrate.c +++ b/media/libvorbis/lib/vorbis_bitrate.c @@ -11,7 +11,7 @@ ******************************************************************** function: bitrate tracking and management - last mod: $Id: bitrate.c 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_block.c b/media/libvorbis/lib/vorbis_block.c index 345c042769f7..e2fad0c4a4cb 100644 --- a/media/libvorbis/lib/vorbis_block.c +++ b/media/libvorbis/lib/vorbis_block.c @@ -11,7 +11,7 @@ ******************************************************************** function: PCM data vector blocking, windowing and dis/reassembly - last mod: $Id: block.c 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ Handle windowing, overlap-add, etc of the PCM vectors. This is made more amusing by Vorbis' current two allowed block sizes. diff --git a/media/libvorbis/lib/vorbis_codebook.c b/media/libvorbis/lib/vorbis_codebook.c index 72f8a17a3500..8b766e8ce8ce 100644 --- a/media/libvorbis/lib/vorbis_codebook.c +++ b/media/libvorbis/lib/vorbis_codebook.c @@ -11,7 +11,7 @@ ******************************************************************** function: basic codebook pack/unpack/code/decode operations - last mod: $Id: codebook.c 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_envelope.c b/media/libvorbis/lib/vorbis_envelope.c index 010c66e2d6b7..944a0a06a415 100644 --- a/media/libvorbis/lib/vorbis_envelope.c +++ b/media/libvorbis/lib/vorbis_envelope.c @@ -11,7 +11,7 @@ ******************************************************************** function: PCM data envelope analysis - last mod: $Id: envelope.c 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_floor0.c b/media/libvorbis/lib/vorbis_floor0.c index 213cce4ec89b..d469be88efc9 100644 --- a/media/libvorbis/lib/vorbis_floor0.c +++ b/media/libvorbis/lib/vorbis_floor0.c @@ -11,7 +11,7 @@ ******************************************************************** function: floor backend 0 implementation - last mod: $Id: floor0.c 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_floor1.c b/media/libvorbis/lib/vorbis_floor1.c index d8bd4645c152..a78048e61837 100644 --- a/media/libvorbis/lib/vorbis_floor1.c +++ b/media/libvorbis/lib/vorbis_floor1.c @@ -11,7 +11,7 @@ ******************************************************************** function: floor backend 1 implementation - last mod: $Id: floor1.c 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_info.c b/media/libvorbis/lib/vorbis_info.c index 8a2a001f99fa..b8f25ee04afe 100644 --- a/media/libvorbis/lib/vorbis_info.c +++ b/media/libvorbis/lib/vorbis_info.c @@ -11,7 +11,7 @@ ******************************************************************** function: maintain the info structure, info <-> header packets - last mod: $Id: info.c 19441 2015-01-21 01:17:41Z xiphmont $ + last mod: $Id$ ********************************************************************/ @@ -65,11 +65,13 @@ void vorbis_comment_add(vorbis_comment *vc,const char *comment){ } void vorbis_comment_add_tag(vorbis_comment *vc, const char *tag, const char *contents){ - char *comment=alloca(strlen(tag)+strlen(contents)+2); /* +2 for = and \0 */ + /* Length for key and value +2 for = and \0 */ + char *comment=_ogg_malloc(strlen(tag)+strlen(contents)+2); strcpy(comment, tag); strcat(comment, "="); strcat(comment, contents); vorbis_comment_add(vc, comment); + _ogg_free(comment); } /* This is more or less the same as strncasecmp - but that doesn't exist @@ -88,27 +90,30 @@ char *vorbis_comment_query(vorbis_comment *vc, const char *tag, int count){ long i; int found = 0; int taglen = strlen(tag)+1; /* +1 for the = we append */ - char *fulltag = alloca(taglen+ 1); + char *fulltag = _ogg_malloc(taglen+1); strcpy(fulltag, tag); strcat(fulltag, "="); for(i=0;icomments;i++){ if(!tagcompare(vc->user_comments[i], fulltag, taglen)){ - if(count == found) + if(count == found) { /* We return a pointer to the data, not a copy */ - return vc->user_comments[i] + taglen; - else + _ogg_free(fulltag); + return vc->user_comments[i] + taglen; + } else { found++; + } } } + _ogg_free(fulltag); return NULL; /* didn't find anything */ } int vorbis_comment_query_count(vorbis_comment *vc, const char *tag){ int i,count=0; int taglen = strlen(tag)+1; /* +1 for the = we append */ - char *fulltag = alloca(taglen+1); + char *fulltag = _ogg_malloc(taglen+1); strcpy(fulltag,tag); strcat(fulltag, "="); @@ -117,6 +122,7 @@ int vorbis_comment_query_count(vorbis_comment *vc, const char *tag){ count++; } + _ogg_free(fulltag); return count; } diff --git a/media/libvorbis/lib/vorbis_lookup.c b/media/libvorbis/lib/vorbis_lookup.c index 3321ed3dbc21..901d3a6d53b0 100644 --- a/media/libvorbis/lib/vorbis_lookup.c +++ b/media/libvorbis/lib/vorbis_lookup.c @@ -11,7 +11,7 @@ ******************************************************************** function: lookup based functions - last mod: $Id: lookup.c 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_lpc.c b/media/libvorbis/lib/vorbis_lpc.c index f5199ec235c4..643ffc916af4 100644 --- a/media/libvorbis/lib/vorbis_lpc.c +++ b/media/libvorbis/lib/vorbis_lpc.c @@ -11,7 +11,7 @@ ******************************************************************** function: LPC low level routines - last mod: $Id: lpc.c 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_lsp.c b/media/libvorbis/lib/vorbis_lsp.c index bf5ab861c9aa..99c6cbb5cd9a 100644 --- a/media/libvorbis/lib/vorbis_lsp.c +++ b/media/libvorbis/lib/vorbis_lsp.c @@ -11,7 +11,7 @@ ******************************************************************** function: LSP (also called LSF) conversion routines - last mod: $Id: lsp.c 19453 2015-03-02 22:35:34Z xiphmont $ + last mod: $Id$ The LSP generation code is taken (with minimal modification and a few bugfixes) from "On the Computation of the LSP Frequencies" by diff --git a/media/libvorbis/lib/vorbis_mapping0.c b/media/libvorbis/lib/vorbis_mapping0.c index 85c7d22d832c..8a7a04c6361a 100644 --- a/media/libvorbis/lib/vorbis_mapping0.c +++ b/media/libvorbis/lib/vorbis_mapping0.c @@ -11,7 +11,7 @@ ******************************************************************** function: channel mapping 0 implementation - last mod: $Id: mapping0.c 19441 2015-01-21 01:17:41Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_mdct.c b/media/libvorbis/lib/vorbis_mdct.c index 0816331805ca..fbc7cf0f558f 100644 --- a/media/libvorbis/lib/vorbis_mdct.c +++ b/media/libvorbis/lib/vorbis_mdct.c @@ -12,7 +12,7 @@ function: normalized modified discrete cosine transform power of two length transform only [64 <= n ] - last mod: $Id: mdct.c 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ Original algorithm adapted long ago from _The use of multirate filter banks for coding of high quality digital audio_, by T. Sporer, diff --git a/media/libvorbis/lib/vorbis_psy.c b/media/libvorbis/lib/vorbis_psy.c index f7a44c6d0053..1ca809e390d2 100644 --- a/media/libvorbis/lib/vorbis_psy.c +++ b/media/libvorbis/lib/vorbis_psy.c @@ -11,7 +11,7 @@ ******************************************************************** function: psychoacoustics not including preecho - last mod: $Id: psy.c 18077 2011-09-02 02:49:00Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_registry.c b/media/libvorbis/lib/vorbis_registry.c index 3961ed14033f..eba9037895e1 100644 --- a/media/libvorbis/lib/vorbis_registry.c +++ b/media/libvorbis/lib/vorbis_registry.c @@ -11,7 +11,7 @@ ******************************************************************** function: registry for time, floor, res backends and channel mappings - last mod: $Id: registry.c 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_res0.c b/media/libvorbis/lib/vorbis_res0.c index ec11488c2f23..837f5fdc4512 100644 --- a/media/libvorbis/lib/vorbis_res0.c +++ b/media/libvorbis/lib/vorbis_res0.c @@ -11,7 +11,7 @@ ******************************************************************** function: residue backend 0, 1 and 2 implementation - last mod: $Id: res0.c 19441 2015-01-21 01:17:41Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_sharedbook.c b/media/libvorbis/lib/vorbis_sharedbook.c index 6bfdf7311ee0..f8854f7de0ae 100644 --- a/media/libvorbis/lib/vorbis_sharedbook.c +++ b/media/libvorbis/lib/vorbis_sharedbook.c @@ -11,11 +11,12 @@ ******************************************************************** function: basic shared codebook operations - last mod: $Id: sharedbook.c 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ ********************************************************************/ #include +#include #include #include #include @@ -158,25 +159,34 @@ ogg_uint32_t *_make_words(char *l,long n,long sparsecount){ that's portable and totally safe against roundoff, but I haven't thought of it. Therefore, we opt on the side of caution */ long _book_maptype1_quantvals(const static_codebook *b){ - long vals=floor(pow((float)b->entries,1.f/b->dim)); + long vals; + if(b->entries<1){ + return(0); + } + vals=floor(pow((float)b->entries,1.f/b->dim)); /* the above *should* be reliable, but we'll not assume that FP is ever reliable when bitstream sync is at stake; verify via integer means that vals really is the greatest value of dim for which vals^b->bim <= b->entries */ /* treat the above as an initial guess */ + if(vals<1){ + vals=1; + } while(1){ long acc=1; long acc1=1; int i; for(i=0;idim;i++){ + if(b->entries/valsentries && acc1>b->entries){ + if(i>=b->dim && acc<=b->entries && acc1>b->entries){ return(vals); }else{ - if(acc>b->entries){ + if(idim || acc>b->entries){ vals--; }else{ vals++; diff --git a/media/libvorbis/lib/vorbis_smallft.c b/media/libvorbis/lib/vorbis_smallft.c index ae2bc41b6b1f..5e6a8a5649e9 100644 --- a/media/libvorbis/lib/vorbis_smallft.c +++ b/media/libvorbis/lib/vorbis_smallft.c @@ -11,7 +11,7 @@ ******************************************************************** function: *unnormalized* fft transform - last mod: $Id: smallft.c 16227 2009-07-08 06:58:46Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_synthesis.c b/media/libvorbis/lib/vorbis_synthesis.c index 932d271a63ad..3fa5ab937f46 100644 --- a/media/libvorbis/lib/vorbis_synthesis.c +++ b/media/libvorbis/lib/vorbis_synthesis.c @@ -11,7 +11,7 @@ ******************************************************************** function: single-block PCM synthesis - last mod: $Id: synthesis.c 19441 2015-01-21 01:17:41Z xiphmont $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbis_window.c b/media/libvorbis/lib/vorbis_window.c index 0305b79297e7..7dfb1cffd53f 100644 --- a/media/libvorbis/lib/vorbis_window.c +++ b/media/libvorbis/lib/vorbis_window.c @@ -11,7 +11,7 @@ ******************************************************************** function: window functions - last mod: $Id: window.c 19028 2013-12-02 23:23:39Z tterribe $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/vorbisenc.c b/media/libvorbis/lib/vorbisenc.c index b5d621e9009d..193a396cd831 100644 --- a/media/libvorbis/lib/vorbisenc.c +++ b/media/libvorbis/lib/vorbisenc.c @@ -11,7 +11,7 @@ ******************************************************************** function: simple programmatic interface for encoder mode setup - last mod: $Id: vorbisenc.c 19457 2015-03-03 00:15:29Z giles $ + last mod: $Id$ ********************************************************************/ diff --git a/media/libvorbis/lib/window.h b/media/libvorbis/lib/window.h index 51f97599f590..934ed337c1d2 100644 --- a/media/libvorbis/lib/window.h +++ b/media/libvorbis/lib/window.h @@ -11,7 +11,7 @@ ******************************************************************** function: window functions - last mod: $Id: window.h 19028 2013-12-02 23:23:39Z tterribe $ + last mod: $Id$ ********************************************************************/