Mercurial > libavcodec.hg
comparison amr.c @ 4789:bf62c8a0d2fb libavcodec
Return correct decoded size, decoder is called with only one frame at a time.
patch by Benoit Fouet, benoit.fouet purplelabs com
| author | diego |
|---|---|
| date | Fri, 06 Apr 2007 10:37:34 +0000 |
| parents | bfe6e14839b2 |
| children | e69d9ecaaf84 |
comparison
equal
deleted
inserted
replaced
| 4788:ded34b64b01a | 4789:bf62c8a0d2fb |
|---|---|
| 306 /* decode frame */ | 306 /* decode frame */ |
| 307 Speech_Decode_Frame(s->speech_decoder_state, s->mode, &serial[1], s->rx_type, synth); | 307 Speech_Decode_Frame(s->speech_decoder_state, s->mode, &serial[1], s->rx_type, synth); |
| 308 } | 308 } |
| 309 | 309 |
| 310 //Each AMR-frame results in 160 16-bit samples | 310 //Each AMR-frame results in 160 16-bit samples |
| 311 *data_size+=160*2; | 311 *data_size=160*2; |
| 312 | 312 |
| 313 /* if not homed: check whether current frame is a homing frame */ | 313 /* if not homed: check whether current frame is a homing frame */ |
| 314 if (s->reset_flag_old == 0) | 314 if (s->reset_flag_old == 0) |
| 315 { | 315 { |
| 316 /* check whole frame */ | 316 /* check whole frame */ |
