d82ffd35d1
- Add check for invalid input sample rate - Avoid malformed wav causing floating point exception (integer divide by zero) - Fix warning on 64 bit machines. Explicitely set variables as unsigned ints. - Enable functions with SSE instructions to maintain their own properly aligned stack - Fix decision if sample rate ratio is an integer value or not - run autoreconf, set GTK_CFLAGS - Add patch to remove ansi2knr instead of using sed - Redux the conditionals for not building gtk1 anywhere anymore - Fix logical issue in hvogel's fix - Fix the conditional building of gtk1 binaries - Fix pkgconfig(gtk+-2.0) for >= 11.4 - Fix bug reporting link - BuildRequires nasm only in x86-32 (there is no assembly available for other archs) - Stop BuildRequiring flac-devel, it's not used - Remove autoreconf call and related BuildRequires and patches - Remove old compatibility Provides - Run spec-cleaner - Removed all patches (unneeded) - Replace some documentation and let the build system install its own - update to 3.99.5: fixed build on 12.2 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lame?expand=0&rev=1
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
Description: Fix warning on 64 bit machines. Explicitely set variables as
|
|
unsigned ints.
|
|
Origin: http://git.debian.org/?p=pkg-multimedia/lame.git;a=blob;f=debian/patches/07-field-width-fix.patch
|
|
Forwarded: commit:1.282
|
|
Applied-Upstream: commit:1.282
|
|
|
|
--- a/frontend/parse.c
|
|
+++ b/frontend/parse.c
|
|
@@ -372,11 +372,11 @@
|
|
const char *b = get_lame_os_bitness();
|
|
const char *v = get_lame_version();
|
|
const char *u = get_lame_url();
|
|
- const size_t lenb = strlen(b);
|
|
- const size_t lenv = strlen(v);
|
|
- const size_t lenu = strlen(u);
|
|
- const size_t lw = 80; /* line width of terminal in characters */
|
|
- const size_t sw = 16; /* static width of text */
|
|
+ const unsigned int lenb = strlen(b);
|
|
+ const unsigned int lenv = strlen(v);
|
|
+ const unsigned int lenu = strlen(u);
|
|
+ const unsigned int lw = 80; /* line width of terminal in characters */
|
|
+ const unsigned int sw = 16; /* static width of text */
|
|
|
|
if (lw >= lenb + lenv + lenu + sw || lw < lenu + 2)
|
|
/* text fits in 80 chars per line, or line even too small for url */
|