Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.h @ 1310:aa1b1fc2d018 mp3-gapless
Stop reporting sync errors only when we really are at eof, i.e. after the input callback has been called again (previously we just tested whether we'd buffered up all the input, which of course we do in one go at the start)
author | Chris Cannam |
---|---|
date | Tue, 29 Nov 2016 16:45:29 +0000 |
parents | 9f9f55a8af92 |
children | ff9697592bef |
comparison
equal
deleted
inserted
replaced
1309:2e7fcdd5f627 | 1310:aa1b1fc2d018 |
---|---|
122 bool m_decodeErrorShown; | 122 bool m_decodeErrorShown; |
123 | 123 |
124 struct DecoderData { | 124 struct DecoderData { |
125 unsigned char const *start; | 125 unsigned char const *start; |
126 sv_frame_t length; | 126 sv_frame_t length; |
127 bool finished; | |
127 MP3FileReader *reader; | 128 MP3FileReader *reader; |
128 }; | 129 }; |
129 | 130 |
130 bool decode(void *mm, sv_frame_t sz); | 131 bool decode(void *mm, sv_frame_t sz); |
131 enum mad_flow filter(struct mad_stream const *, struct mad_frame *); | 132 enum mad_flow filter(struct mad_stream const *, struct mad_frame *); |