shithub: libopusenc

Download patch

ref: 7552052b5412a30a85a2ba38a1f30ee923d0dcba
parent: 6e013460d333694b0da18baa293ccd2f21fd2912
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri May 19 13:04:10 EDT 2017

misc fixes

--- a/configure.ac
+++ b/configure.ac
@@ -47,7 +47,7 @@
 AC_SUBST(OP_LT_AGE)
 
 CC_CHECK_CFLAGS_APPEND(
-  [-pedantic -Wall -Wno-sign-compare -Wextra -Wno-parentheses -Wno-long-long])
+  [-pedantic -Wall -Wextra -Wno-sign-compare -Wno-parentheses -Wno-long-long])
 
 # Platform-specific tweaks
 case $host in
--- a/examples/opusenc_example.c
+++ b/examples/opusenc_example.c
@@ -12,7 +12,7 @@
     fprintf(stderr, "usage: %s <raw pcm input> <Ogg Opus output>\n", argv[0]);
     return 1;
   }
-  fin = fopen(argv[1], "r");
+  fin = fopen(argv[1], "rb");
   if (!fin) {
     fprintf(stderr, "cannot open input file: %s\n", argv[1]);
     return 1;
--- a/opusenc.pc.in
+++ b/opusenc.pc.in
@@ -8,7 +8,7 @@
 Name: libopusenc
 Description: High-level Opus decoding library
 Version: @PACKAGE_VERSION@
-Requires.private: ogg >= 1.3 opus >= 1.0.1
+Requires.private: opus >= 1.1
 Conflicts:
 Libs: -L${libdir} -lopusenc
 Libs.private: @lrintf_lib@