X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=resampler.cpp;h=ee0ab8788ef0acefb5b1099d43d776d2e9f142c7;hb=4c974bd99c5730bf891f21cf905f585b2e4591f0;hp=efa0f178da950680fa55a5c2594b95abc754841c;hpb=1a4e6cf4f4228101ea698b56e7957bc6785a598e;p=nageru diff --git a/resampler.cpp b/resampler.cpp index efa0f17..ee0ab87 100644 --- a/resampler.cpp +++ b/resampler.cpp @@ -19,6 +19,7 @@ #include "resampler.h" #include +#include #include #include @@ -114,6 +115,7 @@ void Resampler::get_output_samples(double pts, float *samples, ssize_t num_sampl // or we're dropping a lot of data. fprintf(stderr, "PANIC: Out of input samples to resample, still need %d output samples!\n", int(vresampler.out_count)); + memset(vresampler.out_data, 0, vresampler.out_count * sizeof(float)); break; }