Commit a196f732ef31be48a806cb948a29758e64875a35

Authored by leelin
Committed by Gitee
1 parent ba26d6b8

Close #I3XL93

@@ -967,8 +967,12 @@ XA_ERRORCODE xa_lc3_dec_frame (U8 **pout_buf, U16 *out_byte_len) @@ -967,8 +967,12 @@ XA_ERRORCODE xa_lc3_dec_frame (U8 **pout_buf, U16 *out_byte_len)
967 } 967 }
968 else 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 *pout_buf = sample_buf; 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 return; 976 return;
973 } 977 }
974 978
Please register or login to post a comment