aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/resample2.c
diff options
context:
space:
mode:
authorKurosu <kurosu@inforezo.org>2005-01-12 18:25:48 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-12 18:25:48 +0000
commitf41c1fac3c3e5bfcc9f6d5380aa228aa85a60562 (patch)
tree0c2a59b311c98a4b56e77ab13d6a27f4195b7b22 /libavcodec/resample2.c
parent83b074704b90e4373bec74102a9f3ab8a960b26d (diff)
downloadffmpeg-f41c1fac3c3e5bfcc9f6d5380aa228aa85a60562.tar.gz
av_malloc vs av_mallocz patch by (Kurosu <kurosu inforezo org>)
Originally committed as revision 3830 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/resample2.c')
-rw-r--r--libavcodec/resample2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c
index 0a9e44ef02..adda84435d 100644
--- a/libavcodec/resample2.c
+++ b/libavcodec/resample2.c
@@ -135,8 +135,6 @@ AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_size,
double factor= FFMIN(out_rate * cutoff / in_rate, 1.0);
int phase_count= 1<<phase_shift;
- memset(c, 0, sizeof(AVResampleContext));
-
c->phase_shift= phase_shift;
c->phase_mask= phase_count-1;
c->linear= linear;