summaryrefslogtreecommitdiff
path: root/thirdparty/opus/repacketizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/opus/repacketizer.c')
-rw-r--r--thirdparty/opus/repacketizer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/thirdparty/opus/repacketizer.c b/thirdparty/opus/repacketizer.c
index f27e9ab958..c80ee7f001 100644
--- a/thirdparty/opus/repacketizer.c
+++ b/thirdparty/opus/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;