Fixes a warning about "conversion from '__int64' to 'int'" on MSVC
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 17 Dec 2013 18:56:00 +0000 (13:56 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 17 Dec 2013 18:56:00 +0000 (13:56 -0500)
src/repacketizer.c

index a62675c..f27e9ab 100644 (file)
@@ -219,8 +219,9 @@ opus_int32 opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int
    }
    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;
 }