Commit 0afd4592e19325c03b7833365b89a0703c9b4e77
Committed by
Gitee
!2 Close #I3XL93
Merge pull request !2 from leelin/#Issue_I3XL93
Showing
1 changed file
with
5 additions
and
1 deletions
| ... | ... | @@ -967,8 +967,12 @@ XA_ERRORCODE xa_lc3_dec_frame (U8 **pout_buf, U16 *out_byte_len) |
| 967 | 967 | } |
| 968 | 968 | else |
| 969 | 969 | { |
| 970 | + //lost frame too many,maybe link lost,clear output buffer | |
| 971 | + memset(sample_buf,0,nSamples * dec_init_cfg.nChannels*2); | |
| 970 | 972 | *pout_buf = sample_buf; |
| 971 | - *out_byte_len = 0; | |
| 973 | + *out_byte_len = nSamples * dec_init_cfg.nChannels*2; | |
| 974 | + //*pout_buf = sample_buf; | |
| 975 | + //*out_byte_len = 0; | |
| 972 | 976 | return; |
| 973 | 977 | } |
| 974 | 978 | ... | ... |
Please
register
or
login
to post a comment