mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 05:49:58 +00:00
Discard packet data when seeking.
This commit is contained in:
parent
50e4eded75
commit
adef5bbe59
@ -311,6 +311,8 @@ struct Atrac {
|
||||
void SeekToSample(int sample) {
|
||||
s64 seek_pos = (s64)sample;
|
||||
av_seek_frame(pFormatCtx, audio_stream_index, seek_pos, 0);
|
||||
// Discard any pending packet data.
|
||||
packet->size = 0;
|
||||
}
|
||||
|
||||
bool FillPacket() {
|
||||
|
Loading…
Reference in New Issue
Block a user