diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-24 22:52:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-24 23:19:32 +0200 |
commit | 97599f8c6d078868be30c18516899325d3c053c2 (patch) | |
tree | 77d60e63431f1ffdd290b04ebcf81f4ec9a95ca1 /libswresample/swresample.c | |
parent | 5dc73634469dc54e109fe0fd9f3fc0c24409e548 (diff) | |
download | ffmpeg-97599f8c6d078868be30c18516899325d3c053c2.tar.gz |
swr: make sure the last data element is NULL so we can use it to detect the number of channels
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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); |