From 4ba983ca56eef4888ebe4bc5629d5bdae1d54c20 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Fri, 2 Feb 2001 20:00:26 +0000 Subject: [PATCH] fix seek bug in raw encoding --- src/flac/encode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flac/encode.c b/src/flac/encode.c index 851dda8..5150dab 100644 --- a/src/flac/encode.c +++ b/src/flac/encode.c @@ -394,6 +394,9 @@ int encode_raw(const char *infile, const char *outfile, bool verbose, uint64 ski } } } + else { + fseek(fin, 0, SEEK_SET); + } if(!init_encoder(lax, do_mid_side, loose_mid_side, do_exhaustive_model_search, do_qlp_coeff_prec_search, rice_optimization_level, max_lpc_order, blocksize, qlp_coeff_precision, channels, bps, sample_rate, &encoder_wrapper)) goto raw_abort_; -- 2.7.4