mirror of
https://github.com/rwengine/openrw.git
synced 2025-04-28 21:08:05 +03:00
SoundSource.cpp: return AVERROR_EOF when buffer is empty
This commit is contained in:
parent
f10a5a8f7a
commit
e20356b05f
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ int read_packet(void* opaque, uint8_t* buf, int buf_size) {
|
|||
memcpy(buf, input->ptr, buf_size);
|
||||
input->ptr += buf_size;
|
||||
input->size -= buf_size;
|
||||
return buf_size;
|
||||
return buf_size <= 0 ? AVERROR_EOF : buf_size;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue