mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
src/gsm610.c : Seek to psf->dataoffset before decoding first block.
This commit is contained in:
parent
93dd2bf73c
commit
3f317d2a61
@ -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
|
||||
|
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user