X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=core%2Fmixer%2Faudio%2Faudio_util.h;h=f0e0d9728979970028d83d14406ee16c1e5e3da0;hb=fd5ae21921774c9c9aa393f02ed6ef9f8f04846c;hp=0ea9ec2d86844101d576ffd84e58168e4c436a18;hpb=09362ec89302304408ed6d39494b102cb694b0e4;p=casparcg diff --git a/core/mixer/audio/audio_util.h b/core/mixer/audio/audio_util.h index 0ea9ec2d8..f0e0d9728 100644 --- a/core/mixer/audio/audio_util.h +++ b/core/mixer/audio/audio_util.h @@ -35,7 +35,7 @@ static std::vector audio_32_to_24(const boost::iterator_range& auto size = input.size(); for(int n = 0; n < size; ++n) *reinterpret_cast(audio24_ptr + n*3) = *(audio32_ptr + n) >> 8; - audio24.resize(input.size()); + audio24.resize(input.size()*3); return audio24; }