src/gsm610.c : Seek to psf->dataoffset before decoding first block.

This commit is contained in:
Erik de Castro Lopo 2008-10-04 12:56:35 +10:00
parent 93dd2bf73c
commit 3f317d2a61
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-10-04 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/gsm610.c
Seek to psf->dataoffset before decoding first block.
2008-10-03 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/broadcast.c

View File

@ -152,6 +152,8 @@ Need separate gsm_data structs for encode and decode.
psf->sf.frames = pgsm610->samplesperblock * pgsm610->blocks ;
psf_fseek (psf, psf->dataoffset, SEEK_SET) ;
pgsm610->decode_block (psf, pgsm610) ; /* Read first block. */
psf->read_short = gsm610_read_s ;