[iortcw] 74/95: All: Fix a few more warnings in opusfile

Simon McVittie smcv at debian.org
Fri Sep 8 10:42:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51
in repository iortcw.

commit 50e601cff7e326db4be436e45833ca61dc28d7ee
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Mon May 29 07:08:04 2017 -0400

    All: Fix a few more warnings in opusfile
---
 MP/code/opusfile-0.8/src/opusfile.c | 4 ++--
 SP/code/opusfile-0.8/src/opusfile.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/MP/code/opusfile-0.8/src/opusfile.c b/MP/code/opusfile-0.8/src/opusfile.c
index 7c3691b..53bf4dd 100644
--- a/MP/code/opusfile-0.8/src/opusfile.c
+++ b/MP/code/opusfile-0.8/src/opusfile.c
@@ -2193,7 +2193,7 @@ static int op_pcm_seek_page(OggOpusFile *_of,
   ogg_int64_t        pcm_start;
   ogg_int64_t        pcm_end;
   ogg_int64_t        best_gp;
-  ogg_int64_t        diff;
+  ogg_int64_t        diff=0;
   ogg_uint32_t       serialno;
   opus_int32         pre_skip;
   opus_int64         begin;
@@ -2331,7 +2331,7 @@ static int op_pcm_seek_page(OggOpusFile *_of,
       d2=end-begin>>1;
       if(force_bisect)bisect=begin+(end-begin>>1);
       else{
-        ogg_int64_t diff2;
+        ogg_int64_t diff2=0;
         OP_ALWAYS_TRUE(!op_granpos_diff(&diff,_target_gp,pcm_start));
         OP_ALWAYS_TRUE(!op_granpos_diff(&diff2,pcm_end,pcm_start));
         /*Take a (pretty decent) guess.*/
diff --git a/SP/code/opusfile-0.8/src/opusfile.c b/SP/code/opusfile-0.8/src/opusfile.c
index 7c3691b..53bf4dd 100644
--- a/SP/code/opusfile-0.8/src/opusfile.c
+++ b/SP/code/opusfile-0.8/src/opusfile.c
@@ -2193,7 +2193,7 @@ static int op_pcm_seek_page(OggOpusFile *_of,
   ogg_int64_t        pcm_start;
   ogg_int64_t        pcm_end;
   ogg_int64_t        best_gp;
-  ogg_int64_t        diff;
+  ogg_int64_t        diff=0;
   ogg_uint32_t       serialno;
   opus_int32         pre_skip;
   opus_int64         begin;
@@ -2331,7 +2331,7 @@ static int op_pcm_seek_page(OggOpusFile *_of,
       d2=end-begin>>1;
       if(force_bisect)bisect=begin+(end-begin>>1);
       else{
-        ogg_int64_t diff2;
+        ogg_int64_t diff2=0;
         OP_ALWAYS_TRUE(!op_granpos_diff(&diff,_target_gp,pcm_start));
         OP_ALWAYS_TRUE(!op_granpos_diff(&diff2,pcm_end,pcm_start));
         /*Take a (pretty decent) guess.*/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list