FS-8378: [mod_esf] fix crash when using esf_page over loopback when transcoding
This commit is contained in:
parent
9fc9e8aef1
commit
02dde638f5
|
@ -473,7 +473,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