diff options
author | Felicia Lim <flim@google.com> | 2016-07-25 20:28:37 +0200 |
---|---|---|
committer | Felicia Lim <flim@google.com> | 2016-08-01 11:41:57 +0200 |
commit | d03c373974c945b4b62b59b873522387418a2a3f (patch) | |
tree | 5e5c32e7d2a943a87532a9f426bc1cad137851cd /src/repacketizer.c | |
parent | da5155b2f54bc136754590d0871008d9622c8100 (diff) | |
download | libopus-d03c373974c945b4b62b59b873522387418a2a3f.tar.gz |
Upgrade Opus to v1.1.3
Diffstat (limited to 'src/repacketizer.c')
-rw-r--r-- | src/repacketizer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/repacketizer.c b/src/repacketizer.c index f27e9ab9..c80ee7f0 100644 --- a/src/repacketizer.c +++ b/src/repacketizer.c @@ -249,7 +249,9 @@ int opus_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len) opus_repacketizer_init(&rp); /* Moving payload to the end of the packet so we can do in-place padding */ OPUS_MOVE(data+new_len-len, data, len); - opus_repacketizer_cat(&rp, data+new_len-len, len); + ret = opus_repacketizer_cat(&rp, data+new_len-len, len); + if (ret != OPUS_OK) + return ret; ret = opus_repacketizer_out_range_impl(&rp, 0, rp.nb_frames, data, new_len, 0, 1); if (ret > 0) return OPUS_OK; |