FS-8378: [mod_esf] fix crash when using esf_page over loopback when transcoding
This commit is contained in:
parent
9aad63bf97
commit
78c8a5ffba
|
@ -475,7 +475,10 @@ SWITCH_STANDARD_APP(bcast_function)
|
|||
read_impl.actual_samples_per_second,
|
||||
ebuf, &encoded_datalen, &rate, &flag);
|
||||
|
||||
read_frame->data = encoded_data;
|
||||
if (read_frame->buflen >= encoded_datalen) {
|
||||
memcpy(read_frame->data, encoded_data, encoded_datalen);
|
||||
}
|
||||
|
||||
read_frame->datalen = encoded_datalen;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue