]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_av] Remove unused buf variable in av_file_write 1668/head
authorAndrey Volk <andywolk@gmail.com>
Mon, 23 May 2022 19:34:29 +0000 (22:34 +0300)
committerAndrey Volk <andywolk@gmail.com>
Mon, 23 May 2022 19:34:29 +0000 (22:34 +0300)
src/mod/applications/mod_av/avformat.c

index 1f5e7e5f0ed894a8171af07969508f01ea6fad43..da7d543fa71ae6874a63f45c6cde3aa95b610492 100644 (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;