Discard packet data when seeking.

This commit is contained in:
Unknown W. Brackets 2014-10-03 23:23:36 -07:00
parent 50e4eded75
commit adef5bbe59

View File

@ -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() {