diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-08-08 17:35:34 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-08-08 17:35:34 +0200 |
commit | 0dc1cc4a809d45ea6a6552bf9a1f15b4ac934e75 (patch) | |
tree | 753e4f490cadd3a8a443f00bc5f381b01e359b1d | |
parent | b1cc62c7b5ae0fa2226ec2699b7761b40828a43a (diff) | |
download | ODR-AudioEnc-0dc1cc4a809d45ea6a6552bf9a1f15b4ac934e75.tar.gz ODR-AudioEnc-0dc1cc4a809d45ea6a6552bf9a1f15b4ac934e75.tar.bz2 ODR-AudioEnc-0dc1cc4a809d45ea6a6552bf9a1f15b4ac934e75.zip |
Replace assert overflow check by .at()
-rw-r--r-- | src/odr-audioenc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp index 970c444..d759c6f 100644 --- a/src/odr-audioenc.cpp +++ b/src/odr-audioenc.cpp @@ -1185,8 +1185,7 @@ int AudioEnc::run() encode_rs_char(rs_handler, buf_to_rs_enc, rs_enc); for(col=110; col<120; col++) { - outbuf[subchannel_index * col + row] = rs_enc[col-110]; - assert(subchannel_index * col + row < outbuf_size); + outbuf.at(subchannel_index * col + row) = rs_enc[col-110]; } } |