diff options
author | Gregory Maxwell <greg@xiph.org> | 2011-11-29 08:19:08 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-12-02 21:41:31 +0400 |
commit | 92c896e8806ec34c826e638512f7e33f1c9edcd0 (patch) | |
tree | b4077673e0f2c26287a37f517d27d0cd93ba3719 /src/repacketizer.c | |
parent | 1c80f649601a4f7250a84d27903b564c6594596c (diff) |
Fixes the code for optional self-delimited packing to make it fit the draft
This has no impact on opus_demo, test vectors, or "normal" codec operation
Diffstat (limited to 'src/repacketizer.c')
-rw-r--r-- | src/repacketizer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/repacketizer.c b/src/repacketizer.c index 1caa2feb..dd923a21 100644 --- a/src/repacketizer.c +++ b/src/repacketizer.c @@ -111,7 +111,7 @@ opus_int32 opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int len = rp->len+begin; frames = rp->frames+begin; if (self_delimited) - tot_size = 1 + len[count-1]>=252; + tot_size = 1 + (len[count-1]>=252); else tot_size = 0; @@ -184,7 +184,6 @@ opus_int32 opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int } if (self_delimited) { int sdlen = encode_size(len[count-1], data); - tot_size += sdlen; data += sdlen; } /* Copy the actual data */ |