diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-12-17 13:56:00 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-12-17 13:56:00 -0500 |
commit | 8e02afcfff4d1e4ddbf06a5b6878d49d6c3fccb5 (patch) | |
tree | aaa30c9e3aed4220d4f7882f58e3c16514bcb104 /src/repacketizer.c | |
parent | 253e15f7e840b8598c36779a6931d79289b7a2bc (diff) | |
download | opus-8e02afcfff4d1e4ddbf06a5b6878d49d6c3fccb5.tar.gz |
Fixes a warning about "conversion from '__int64' to 'int'" on MSVC
Diffstat (limited to 'src/repacketizer.c')
-rw-r--r-- | src/repacketizer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/repacketizer.c b/src/repacketizer.c index a62675ce..f27e9ab9 100644 --- a/src/repacketizer.c +++ b/src/repacketizer.c @@ -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; } |