Fix T46815: Changing playback setting makes blender crash
Copied the fix from upstream audaspace.
This commit is contained in:
parent
4006474225
commit
3cd36f85b0
Notes:
blender-bot
2023-02-14 08:25:21 +01:00
Referenced by issue #46815, Changing playback setting makes blender crash (fixed upstream)
|
@ -389,9 +389,7 @@ void AUD_FFMPEGReader::seek(int position)
|
|||
int length = AUD_DEFAULT_BUFFER_SIZE;
|
||||
AUD_Buffer buffer(length * AUD_SAMPLE_SIZE(m_specs));
|
||||
bool eos;
|
||||
for(int len = position - m_position;
|
||||
length == AUD_DEFAULT_BUFFER_SIZE;
|
||||
len -= AUD_DEFAULT_BUFFER_SIZE)
|
||||
for(int len = position - m_position; len > 0; len -= AUD_DEFAULT_BUFFER_SIZE)
|
||||
{
|
||||
if(len < AUD_DEFAULT_BUFFER_SIZE)
|
||||
length = len;
|
||||
|
|
Loading…
Reference in New Issue