Merge pull request #1668 from signalwire/unusedbuf

[mod_av] Remove unused buf variable in av_file_write
This commit is contained in:
Andrey Volk 2022-05-23 22:53:51 +03:00 committed by GitHub
commit 7f0edeafcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -2037,7 +2037,6 @@ static switch_status_t av_file_write(switch_file_handle_t *handle, void *data, s
datalen = *len * 2 * handle->channels;
if (context->offset) {
char buf[SWITCH_RECOMMENDED_BUFFER_SIZE] = {0};
switch_size_t samples = *len;
int fps = handle->samplerate / samples;
int lead_frames = (context->offset * fps) / 1000;