XMAContext abort instantly if libav failed mid-packet.

This commit is contained in:
Dr. Chat
2015-07-27 18:24:04 -05:00
parent e37479c7b0
commit 766788be7b
2 changed files with 27 additions and 13 deletions

View File

@@ -171,7 +171,8 @@ class XmaContext {
int sample_rate, int channels);
void DiscardPacket();
int DecodePacket(uint8_t* output, size_t offset, size_t size);
int DecodePacket(uint8_t* output, size_t offset, size_t size,
size_t* read_bytes);
Memory* memory_;