search for: last_size

Displaying 10 results from an estimated 10 matches for "last_size".

Did you mean: dest_size
2014 Dec 03
2
[PATCH] test_compression.sh
...014 +++ test_compression.sh Wed Dec 3 23:01:16 2014 @@ -23,24 +23,22 @@ PATH=`pwd`/../src/flac:$PATH echo "Using FLAC binary :" $(which flac) -date=`date "+%Y%m%dT%H%M%S"` -fname="comp${date}.flac" +ofile=`mktemp`.$$ +ifile="noisy-sine.wav" -last_k=0 -last_size=$(wc -c < noisy-sine.wav) +prevcomp=0 +prevsize=`wc -c < $ifile` +echo "Original file size $prevsize bytes." -echo "Original file size ${last_size} bytes." +for comp in 0 1 2 3 4 5 6 7 8 ; do + flac${EXE} -f -$comp --silent $ifile -o $ofile + size=`wc -c < $ofile` + e...
2014 Oct 22
0
[PATCH] Make test_compression a little more forgiving
...le changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_compression.sh b/test/test_compression.sh index 11bd6c3..504bf55 100755 --- a/test/test_compression.sh +++ b/test/test_compression.sh @@ -39,7 +39,7 @@ for k in 0 1 2 3 4 5 6 7 8 ; do echo "Error : Compression ${last_k} size $last_size >= compression $k size $size." exit 1 fi - last_size=${size} + let last_size=${size}+10 last_k=${k} rm -f ${fname} done -- 1.9.1 --------------040506080301050601050900--
2014 Nov 26
1
flac-1.3.1pre1
...ph.Org Foundation @@ -17,7 +17,7 @@ # restrictive of those mentioned above. See the file COPYING.Xiph in this # distribution. -source common.sh +. ./common.sh PATH=`pwd`/../src/flac:$PATH @@ -39,7 +39,7 @@ for k in 0 1 2 3 4 5 6 7 8 ; do echo "Error : Compression ${last_k} size $last_size >= compression $k size $size." exit 1 fi - let last_size=${size}+10 + last_size=$((${size}+10)) last_k=${k} rm -f ${fname} done --- test_flac.sh.orig Wed Nov 26 21:53:30 2014 +++ test_flac.sh Wed Nov 26 21:53:39 2014 @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/sh -e # FLAC - Fre...
2014 Nov 25
2
flac-1.3.1pre1
Op 25-11-14 om 23:39 schreef Jan Stary: > Is there a reason the test scripts are calling bash? The change from sh to bash was made a little more than a year ago. The mailing list thread accompanying this change can be found here: http://lists.xiph.org/pipermail/flac-dev/2013-September/004374.html
2014 Nov 25
0
flac-1.3.1pre1
...ph.Org Foundation @@ -17,7 +17,7 @@ # restrictive of those mentioned above. See the file COPYING.Xiph in this # distribution. -source common.sh +. ./common.sh PATH=`pwd`/../src/flac:$PATH @@ -39,7 +39,7 @@ for k in 0 1 2 3 4 5 6 7 8 ; do echo "Error : Compression ${last_k} size $last_size >= compression $k size $size." exit 1 fi - let last_size=${size}+10 + last_size=$((${size}+10)) last_k=${k} rm -f ${fname} done --- test_flac.sh Tue Nov 25 04:42:25 2014 +++ /home/hans/src/flac-1.3.1pre1/test/test_flac.sh Tue Nov 25 23:00:35 2014 @@ -1,4 +1,4 @@ -#!/bin/bash -e...
2014 Nov 28
2
[PATCH] Add ldisk.c32 Lua module
...print(s:format(...)) +end + +printf("Found %d disk%s", #disks, #disks ~= 1 and "s" or "") + +local prefixes = { [0] = "MiB", "GiB", "TiB" } +local function get_size_string(size) + local prefix = 1 + for i, v in ipairs(prefixes) do + local last_size = size + size = size / 1024 + if size < 16 then + prefix = i - 1 + size = last_size + break + end + end + return size .. " " .. prefixes[prefix] +end + +for i, v in ipairs(disks) do + printf("Id: %d, Size: %s", v.id, get_size_string(v.size)) + for k, v in pairs(v) d...
2014 Nov 25
2
[PATCH] Re: [flac:bugs] #420 flac make check fails on os x
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2014-11-24 9:49 PM, mark4o wrote: > $ make check ... Original file size 441044 bytes. Compression > level 0, file size 421389 bytes. ./test_compression.sh: line 42: > let: last_size=: syntax error: operand expected (error token is > "=") I can reproduce on MacOS X 10.8.5. It doesn't seem to like the assignment inside the let statement. Possible an issue with the older bash (3.2) Apple ships? The attached patch resolves the issue, and I believe does the same...
2014 Nov 25
19
flac-1.3.1pre1
Hi all, As people may have seen there's a pre-release here: http://downloads.xiph.org/releases/flac/beta/ Specifically: flac-1.3.1pre1.tar.xz : The source code flac-1.3.1pre1-win.zip : Windows 32 and 64 bit binaries Please test. I'm particularly interested in hearing about the windows binaries which were cross compiled from Linux to Windows. Unfortunately there is a bug
2013 Jan 25
1
assert in mail-transaction-log-file.c
...at mail-deliver.c:390 #25 0x0000000000402ffa in main (argc=6, argv=0x7fffffffea78) at main.c:434 (gdb) f 5 (gdb) p *file $1 = {log = 0x8016463d0, next = 0x0, refcount = 5, filepath = 0x801620420 "(in-memory index).log", fd = -1, st_ino = 13919248, st_dev = 109, last_mtime = 1359082912, last_size = 0, hdr = {major_version = 1 '\001', minor_version = 2 '\002', hdr_size = 40, indexid = 1359082912, file_seq = 2, prev_file_seq = 0, prev_file_offset = 0, create_stamp = 1359082912, initial_modseq = 0, compat_flags = 1 '\001', unused = "\000\000", unused2 = 0}...
2013 Feb 26
2
(no subject)
...lib/array.h:197 aclobj = (struct acl_object_vfile *) 0x496330 backend = (struct acl_backend_vfile *) 0x4c4050 old_validity = (struct acl_backend_vfile_validity *) 0x0 validity = {global_validity = {last_check = 0, last_read_time = 1361888004, last_mtime = 1361801276, last_size = 395}, local_validity = {last_check = 0, last_read_time = 0, last_mtime = 0, last_size = 0}, mailbox_validity = {last_check = 0, last_read_time = 0, last_mtime = 0, last_size = 0}} mtime = 1361801276 ret = 1 #14 0xffff80ff94c6ad3b in acl_backend_get_default_rights (backend=0x4...