aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlegrand@google.com <tlegrand@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-27 08:37:23 +0000
committertlegrand@google.com <tlegrand@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-27 08:37:23 +0000
commitdd52457296df1ef41bae8e28dc321d6798509172 (patch)
treef727676b8060d3a1966c0e8e37855aaee8b4e216
parente3ea049fcaee2247e45f0ce793d4313babb4ef69 (diff)
downloadsrc-dd52457296df1ef41bae8e28dc321d6798509172.tar.gz
Updating Opus 1.1 Beta
Removing two files not needed, that where missing license headers. Now passes src/tools/checklicenses/checklicenses.py. BUG=321557 R=sergeyu@chromium.org Review URL: https://codereview.chromium.org/66503002 git-svn-id: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus@237544 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xautogen.sh11
-rw-r--r--tests/test_opus_padding.c67
2 files changed, 0 insertions, 78 deletions
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755
index 942ba09..0000000
--- a/autogen.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# Run this to set up the build system: configure, makefiles, etc.
-set -e
-
-srcdir=`dirname $0`
-test -n "$srcdir" && cd "$srcdir"
-
-echo "Updating build configuration files, please wait...."
-
-ACLOCAL_FLAGS="-I m4"
-autoreconf -isf
diff --git a/tests/test_opus_padding.c b/tests/test_opus_padding.c
deleted file mode 100644
index c5efc29..0000000
--- a/tests/test_opus_padding.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Check for overflow in reading the padding length.
- * Example by Jüri Aedla and Ralph Giles
- * http://lists.xiph.org/pipermail/opus/2012-November/001834.html
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "opus.h"
-#include "test_opus_common.h"
-
-#define PACKETSIZE 16909318
-#define CHANNELS 2
-#define FRAMESIZE 5760
-
-int test_overflow(void)
-{
- OpusDecoder *decoder;
- int result;
- int error;
-
- unsigned char *in = malloc(PACKETSIZE);
- opus_int16 *out = malloc(FRAMESIZE*CHANNELS*sizeof(*out));
-
- fprintf(stderr, " Checking for padding overflow... ");
- if (!in || !out) {
- fprintf(stderr, "FAIL (out of memory)\n");
- return -1;
- }
- in[0] = 0xff;
- in[1] = 0x41;
- memset(in + 2, 0xff, PACKETSIZE - 3);
- in[PACKETSIZE-1] = 0x0b;
-
- decoder = opus_decoder_create(48000, CHANNELS, &error);
- result = opus_decode(decoder, in, PACKETSIZE, out, FRAMESIZE, 0);
- opus_decoder_destroy(decoder);
-
- free(in);
- free(out);
-
- if (result != OPUS_INVALID_PACKET) {
- fprintf(stderr, "FAIL!\n");
- test_failed();
- }
-
- fprintf(stderr, "OK.\n");
-
- return 1;
-}
-
-int main(void)
-{
- const char *oversion;
- int tests = 0;;
-
- iseed = 0;
- oversion = opus_get_version_string();
- if (!oversion) test_failed();
- fprintf(stderr, "Testing %s padding.\n", oversion);
-
- tests += test_overflow();
-
- fprintf(stderr, "All padding tests passed.\n");
-
- return 0;
-}