ref: f41f8eda4c3a99aaeffd9be0b808dd30beff239e
parent: 5f47e1ecd413976cab086b31e39cd55a99705652
author: cbagwell <cbagwell>
date: Sat Jan 22 09:35:31 EST 2011
Fixe to allow mp3 seeking to location zero. patch from Pavel Karneliuk.
--- a/src/mp3.c
+++ b/src/mp3.c
@@ -565,7 +565,7 @@
depadded = sox_true;
p->mad_stream_buffer(&p->Stream, p->mp3_buffer + padding, leftover + read - padding);
- while (to_skip_samples > 0) { /* Decode frame headers */
+ while (to_skip_samples >= 0) { /* Decode frame headers */
static unsigned short samples;
p->Stream.error = MAD_ERROR_NONE;