--- opusfile-0.9+20170913.orig/debian/changelog
+++ opusfile-0.9+20170913/debian/changelog
@@ -0,0 +1,77 @@
+opusfile (0.9+20170913-1) unstable; urgency=medium
+
+  * Fix an invalid free with tag handling.
+  * Improve handling of corrupt streams.
+  * Improve performance on streams with many chain segments.
+  * Improve TLS host validation.
+  * Align op_raw_total to work better with op_raw_seek.
+  * Includes the fix for an out-of-bounds read in serialno matching logic
+    (a bug which was introduced after the 0.8 release but found and fixed
+    after 0.9 was tagged).
+
+ -- Ron Lee <ron@debian.org>  Thu, 28 Sep 2017 02:56:19 +0930
+
+opusfile (0.8-1) unstable; urgency=medium
+
+  * Fix skip logic for multiplexed non-Opus data.
+  * Fix issues with tag parsing introduced in 0.7.
+  * Add support for OpenSSL 1.1.x.  Thanks to Kurt Roeckx for doing the early
+    build tests and reporting the need for this.  Closes: #828480
+
+ -- Ron Lee <ron@debian.org>  Thu, 07 Jul 2016 13:08:40 +0930
+
+opusfile (0.7-1) unstable; urgency=medium
+
+  * Better overflow check for serialno allocation.
+  * Handle continued packets in bisection search.
+  * Fix timestamp check for seek-free seek.
+  * Buffer continued packet data to reduce seeking.
+  * Add support for R128_ALBUM_GAIN tag.
+  * Fix potential memory leaks with OpusServerInfo.
+
+ -- Ron Lee <ron@debian.org>  Wed, 06 Jan 2016 07:08:02 +1030
+
+opusfile (0.6-1) unstable; urgency=medium
+
+  * Fixes for comment handling.
+  * Fixes header reading for non-Opus streams.
+  * Fixes for zero size METADATA_BLOCK_PICTURE.
+
+ -- Ron Lee <ron@debian.org>  Sat, 04 Oct 2014 10:54:29 +0930
+
+opusfile (0.5-1) unstable; urgency=low
+
+  * Much new goodness, too much to list here, see git for details.
+  * Add a symbols file now that we're back on a tagged release again.
+
+ -- Ron Lee <ron@debian.org>  Sat, 11 Jan 2014 07:35:41 +1030
+
+opusfile (0.2+20130702-1) unstable; urgency=low
+
+  * Update the package dependencies too.  Closes: #707969 (again)
+
+ -- Ron Lee <ron@debian.org>  Tue, 02 Jul 2013 16:33:34 +0930
+
+opusfile (0.2+20130513-1) unstable; urgency=low
+
+  * Snapshot release for unstable.
+  * Fixes the pkg-config file to avoid overlinking.  Closes: #707969
+  * Split the URL handling into a separate library, so that linking with
+    openssl is only an issue for people who do need that functionality.
+    The main opusfile library can now be linked with anything again.
+    Closes:  #708008
+
+ -- Ron Lee <ron@debian.org>  Mon, 13 May 2013 21:43:40 +0930
+
+opusfile (0.2-1) experimental; urgency=low
+
+  * Initial release.  Closes: #692942
+
+ -- Ron Lee <ron@debian.org>  Sat, 17 Nov 2012 21:27:45 +1030
+
+opusfile (0.1-1) experimental; urgency=low
+
+  * Initial test package.
+
+ -- Ron Lee <ron@debian.org>  Sun, 11 Nov 2012 10:38:53 +1030
+
--- opusfile-0.9+20170913.orig/debian/compat
+++ opusfile-0.9+20170913/debian/compat
@@ -0,0 +1 @@
+5
--- opusfile-0.9+20170913.orig/debian/control
+++ opusfile-0.9+20170913/debian/control
@@ -0,0 +1,59 @@
+Source: opusfile
+Section: sound
+Priority: optional
+Maintainer: Ron Lee <ron@debian.org>
+Build-Depends: libopus-dev (>= 1.0.1), libogg-dev (>= 1.3.0), libssl-dev,
+               pkg-config, debhelper (>= 5), lsb-release
+Build-Depends-Indep: doxygen, graphviz
+Standards-Version: 4.1.0.0
+Homepage: http://www.opus-codec.org
+Vcs-Git: git://git.debian.org/users/ron/opusfile.git
+Vcs-Browser: http://git.debian.org/?p=users/ron/opusfile.git
+
+Package: libopusfile0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: High-level API for basic manipulation of Ogg Opus audio streams
+ libopusfile provides several sets of built-in routines for file and stream
+ access, and may also use custom stream I/O routines provided by the embedded
+ environment.  There are built-in I/O routines provided for ANSI-compliant
+ stdio (FILE *), memory buffers, and URLs (including <file:> URLs, plus
+ optionally <http:> and <https:> URLs).
+ .
+ It is implemented as a layer on top of Xiph.Org's reference libogg and
+ libopus libraries.
+ .
+ This package provides the opusfile runtime library.
+
+Package: libopusfile-dev
+Section: libdevel
+Architecture: any
+Depends: libopusfile0 (= ${binary:Version}), libopus-dev (>= 1.0.1), libogg-dev (>= 1.3.0)
+Recommends: libssl-dev
+Description: High-level API for basic manipulation of Ogg Opus audio streams
+ libopusfile provides several sets of built-in routines for file and stream
+ access, and may also use custom stream I/O routines provided by the embedded
+ environment.  There are built-in I/O routines provided for ANSI-compliant
+ stdio (FILE *), memory buffers, and URLs (including <file:> URLs, plus
+ optionally <http:> and <https:> URLs).
+ .
+ It is implemented as a layer on top of Xiph.Org's reference libogg and
+ libopus libraries.
+ .
+ This package provides the Opus library headers and development files.
+
+Package: libopusfile-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: libopusfile0 (= ${binary:Version})
+Description: debugging symbols for libopusfile
+ This package provides the detached debug symbols for libopusfile.
+
+Package: libopusfile-doc
+Section: doc
+Architecture: all
+Description: libopusfile API documentation
+ This package contains the developer documentation for libopusfile.
+
--- opusfile-0.9+20170913.orig/debian/copyright
+++ opusfile-0.9+20170913/debian/copyright
@@ -0,0 +1,36 @@
+This package was debianised by Ron <ron@debian.org> on
+Sun, 11 Nov 2012 13:07:18 +1030.
+
+Upstream source was cloned from http://git.opus-codec.org/opusfile.git
+
+    Copyright (c) 1994-2012 Xiph.Org Foundation and contributors
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions
+    are met:
+
+    - Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+
+    - Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+    - Neither the name of the Xiph.Org Foundation nor the names of its
+    contributors may be used to endorse or promote products derived from
+    this software without specific prior written permission.
+
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION
+    OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The Debian packaging is Copyright 2012, Ron <ron@debian.org> and
+is licensed under the same terms as opusfile itself.
--- opusfile-0.9+20170913.orig/debian/libopusfile-dev.install
+++ opusfile-0.9+20170913/debian/libopusfile-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
+usr/lib/pkgconfig/*.pc
--- opusfile-0.9+20170913.orig/debian/libopusfile-doc.doc-base
+++ opusfile-0.9+20170913/debian/libopusfile-doc.doc-base
@@ -0,0 +1,18 @@
+Document: libopusfile
+Title: Opusfile library API documentation
+Author: Xiph.Org
+Abstract: A high-level API for basic manipulation of Ogg Opus audio streams
+ .
+ libopusfile provides several sets of built-in routines for file and stream
+ access, and may also use custom stream I/O routines provided by the embedded
+ environment.  There are built-in I/O routines provided for ANSI-compliant
+ stdio (FILE *), memory buffers, and URLs (including <file:> URLs, plus
+ optionally <http:> and <https:> URLs).
+ .
+ It is implemented as a layer on top of Xiph.Org's reference libogg and
+ libopus libraries.
+Section: Programming/C
+
+Format: HTML
+Index: /usr/share/doc/libopusfile-doc/html/index.html
+Files: /usr/share/doc/libopusfile-doc/html/*
--- opusfile-0.9+20170913.orig/debian/libopusfile-doc.docs
+++ opusfile-0.9+20170913/debian/libopusfile-doc.docs
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/opusfile/html
--- opusfile-0.9+20170913.orig/debian/libopusfile-doc.examples
+++ opusfile-0.9+20170913/debian/libopusfile-doc.examples
@@ -0,0 +1,2 @@
+examples/opusfile_example.c
+examples/seeking_example.c
--- opusfile-0.9+20170913.orig/debian/libopusfile0.install
+++ opusfile-0.9+20170913/debian/libopusfile0.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
--- opusfile-0.9+20170913.orig/debian/rules
+++ opusfile-0.9+20170913/debian/rules
@@ -0,0 +1,184 @@
+#!/usr/bin/make -f
+# Ron Lee 2003 - 2016
+
+#export DH_VERBOSE=1
+export DH_OPTIONS
+
+SHELL = /bin/bash
+
+NUM_CPUS = $(shell getconf _NPROCESSORS_ONLN 2>/dev/null)
+PARALLEL = $(subst parallel=,,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NJOBS    = -j$(or $(PARALLEL),$(NUM_CPUS),1)
+
+
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+
+# -fstack-protector-all is added by the default autoconf tests.
+HARD_CPPFLAGS = -D_FORTIFY_SOURCE=2
+HARD_CFLAGS   = -Wformat=2
+HARD_LDFLAGS  = -Wl,-z,now
+
+ifneq (,$(filter-out alpha hppa arm, $(DEB_HOST_ARCH)))
+	HARD_CFLAGS += -fstack-protector --param ssp-buffer-size=4
+endif
+ifneq (,$(filter-out ia64 hppa avr32, $(DEB_HOST_ARCH)))
+	HARD_LDFLAGS += -Wl,-z,relro
+endif
+
+# Keep dpkg-buildpackage the hell out of messing with our compile flags,
+# we should trust upstream to know better than it what to use here.
+# We explicitly re-add -g and -O2 here, since by explicitly overriding
+# these variables, we otherwise disable autoconf adding them by default.
+
+devi := $(shell lsb_release -r -s | cut -d '.'  -f1)
+ifeq ($(shell if [ $(devi) -gt 7 ] ; then echo gt ; else echo lt ; fi),gt)
+   DEBVE2=yes
+else
+   DEBVE2=no
+endif
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+OPTI_FLAGS_LIBONLY := -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -fomit-frame-pointer
+ifeq ($(DEB_HOST_ARCH),i386)
+
+ifeq ($(DEBVE2),yes)
+    OPTI_FLAGS_LIBONLY += -march=i686 -mtune=generic -mmmx -msse -mfpmath=sse -fexcess-precision=fast 
+else
+    OPTI_FLAGS_LIBONLY += -march=i586 -mtune=generic -mmmx -fexcess-precision=fast 
+endif
+
+else
+
+ifeq ($(DEB_HOST_ARCH),i486)
+ifeq ($(DEBVE2),yes)
+    OPTI_FLAGS_LIBONLY += -march=i686 -mtune=generic -mmmx -msse -mfpmath=sse -fexcess-precision=fast 
+else
+    OPTI_FLAGS_LIBONLY += -march=i586 -mtune=generic -mmmx -fexcess-precision=fast 
+endif
+endif
+
+endif
+
+ifeq ($(DEB_HOST_ARCH),amd64)
+    OPTI_FLAGS_LIBONLY += -mmmx -msse -msse2 -mfpmath=sse -fexcess-precision=fast 
+endif
+
+CPPFLAGS = $(HARD_CPPFLAGS) $(OPTI_FLAGS_LIBONLY)
+CFLAGS   = $(HARD_CFLAGS) -g -O2 $(OPTI_FLAGS_LIBONLY)
+CXXFLAGS = $(HARD_CFLAGS) -g -O2 $(OPTI_FLAGS_LIBONLY)
+LDFLAGS  = $(HARD_LDFLAGS)
+
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS = -g -O0
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+
+ifneq (,$(filter arm armel mips mipsel, $(DEB_HOST_ARCH)))
+	EXTRA_CONFIG_FLAGS = --enable-fixed-point
+endif
+
+
+
+objdir := objs
+
+
+clean:
+	dh_testdir
+	dh_testroot
+	$(RM) -r $(objdir)
+	$(RM) *-stamp
+	dh_clean
+
+
+$(objdir)/config.status: configure
+	dh_testdir
+	mkdir -p $(objdir)
+	cd $(objdir) &&	../configure --disable-maintainer-mode		\
+				     --host=$(DEB_HOST_GNU_TYPE)	\
+				     --build=$(DEB_BUILD_GNU_TYPE)	\
+				     --prefix=/usr			\
+				     $(EXTRA_CONFIG_FLAGS)		\
+				     CPPFLAGS="$(CPPFLAGS)"		\
+				     CFLAGS="$(CFLAGS)"			\
+				     CXXFLAGS="$(CXXFLAGS)"		\
+				     LDFLAGS="$(LDFLAGS)"
+
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: $(objdir)/config.status
+	dh_testdir
+	$(MAKE) $(NJOBS) -C $(objdir) opusfile
+	touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp: $(objdir)/config.status
+	dh_testdir
+	$(MAKE) $(NJOBS) -C $(objdir) docs
+	touch $@
+
+
+install: install-arch install-indep
+
+install-arch: install-arch-stamp
+install-arch-stamp: build-arch
+	dh_testdir
+	$(MAKE) -C $(objdir) install-opusfile DESTDIR=$(CURDIR)/debian/tmp
+	touch $@
+
+install-indep: install-indep-stamp
+install-indep-stamp: build-indep
+	dh_testdir
+	$(MAKE) -C $(objdir) install-docs DESTDIR=$(CURDIR)/debian/tmp
+	touch $@
+
+
+binary: binary-arch binary-indep
+
+binary-indep: DH_OPTIONS = -i
+binary-indep: install-indep
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples
+	dh_installchangelogs
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch: DH_OPTIONS = -a
+binary-arch: install-arch
+	dh_testdir
+	dh_testroot
+	sed -i "/dependency_libs/ s/'.*'/''/" `find debian/ -name '*.la'`
+	dh_install --sourcedir=debian/tmp
+	dh_installdocs
+	dh_installchangelogs
+	dh_strip --dbg-package=libopusfile-dbg
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs -- -c0
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+
+.PHONY: clean build build-arch build-indep install install-arch install-indep \
+	binary binary-arch binary-indep
+
