shithub: opus

Download patch

ref: 8e02afcfff4d1e4ddbf06a5b6878d49d6c3fccb5
parent: 253e15f7e840b8598c36779a6931d79289b7a2bc
author: Jean-Marc Valin <[email protected]>
date: Tue Dec 17 08:56:00 EST 2013

Fixes a warning about "conversion from '__int64' to 'int'" on MSVC

--- a/src/repacketizer.c
+++ b/src/repacketizer.c
@@ -219,8 +219,9 @@
    }
    if (pad)
    {
-      for (i=ptr-data;i<maxlen;i++)
-         data[i] = 0;
+      /* Fill padding with zeros. */
+      while (ptr<data+maxlen)
+         *ptr++=0;
    }
    return tot_size;
 }