Skip to content

Commit

Permalink
audio_decoders: ensure fec decode length
Browse files Browse the repository at this point in the history
CID 464486
  • Loading branch information
MartinPulec committed Jul 8, 2024
1 parent bc68c87 commit 855c0e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rtp/audio_decoders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ static bool audio_fec_decode(struct pbuf_audio_data *s, vector<pair<vector<char>
char *out = nullptr;
int out_len = 0;
if (decoder->fec_state->decode(c.first.data(), c.first.size(), &out, &out_len, c.second)) {
assert(out_len >= (int) sizeof(audio_payload_hdr_t));
if (!desc) {
uint32_t quant_sample_rate = 0;
uint32_t audio_tag = 0;
Expand Down

0 comments on commit 855c0e8

Please sign in to comment.