Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: src/repacketizer.c

Issue 882843002: Update to opus-HEAD-66611f1. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/opus.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/repacketizer.c
diff --git a/src/repacketizer.c b/src/repacketizer.c
index a62675ce940e8b2421dc547f242c51de282f8ee2..f27e9ab9582ca86e351d395c75ad1878def1ecb6 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;
}

Powered by Google App Engine
This is Rietveld 408576698