diff options
Diffstat (limited to 'libswresample/swresample.c')
-rw-r--r-- | libswresample/swresample.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c index fdd5aae43b..5d02aafb49 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -214,6 +214,8 @@ av_cold int swr_init(struct SwrContext *s){ free_temp(&s->preout); free_temp(&s->in_buffer); free_temp(&s->dither); + memset(s->in.ch, 0, sizeof(s->in.ch)); + memset(s->out.ch, 0, sizeof(s->out.ch)); swri_audio_convert_free(&s-> in_convert); swri_audio_convert_free(&s->out_convert); swri_audio_convert_free(&s->full_convert); |