output_sample_format, input_sample_format,\r
16, 10, 0, 0.8);\r
\r
- buffer2_.resize(AVCODEC_MAX_AUDIO_FRAME_SIZE*2);\r
+ buffer2_.resize(480000*2);\r
\r
char sample_fmt_string[200];\r
av_get_sample_fmt_string(sample_fmt_string, 200, input_sample_format);\r
{\r
if(resampler_ && !data.empty())\r
{\r
- buffer2_.resize(AVCODEC_MAX_AUDIO_FRAME_SIZE*2);\r
+ buffer2_.resize(480000*2);\r
auto ret = audio_resample(resampler_.get(),\r
reinterpret_cast<short*>(buffer2_.data()), \r
reinterpret_cast<short*>(data.data()), \r