OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 reinterpret_cast<const uint8_t*>(streamdata), stream_len, &FL); | 748 reinterpret_cast<const uint8_t*>(streamdata), stream_len, &FL); |
749 declen = WebRtcIsacfix_Decode( | 749 declen = WebRtcIsacfix_Decode( |
750 ISAC_main_inst, | 750 ISAC_main_inst, |
751 reinterpret_cast<const uint8_t*>(streamdata), | 751 reinterpret_cast<const uint8_t*>(streamdata), |
752 stream_len, | 752 stream_len, |
753 decoded, | 753 decoded, |
754 speechType); | 754 speechType); |
755 /* Error check */ | 755 /* Error check */ |
756 if (err < 0 || declen < 0 || FL != static_cast<size_t>(declen)) { | 756 if (err < 0 || declen < 0 || FL != static_cast<size_t>(declen)) { |
757 errtype=WebRtcIsacfix_GetErrorCode(ISAC_main_inst); | 757 errtype=WebRtcIsacfix_GetErrorCode(ISAC_main_inst); |
758 printf("\nError in decode_B/or getFrameLen: %d.\n", errtype); | 758 printf( |
| 759 "\nError %d in ReadFrameLen (%s), Decode (%s), with FL %zu and " |
| 760 "declen %d.\n", |
| 761 errtype, err < 0 ? "yes" : "no", declen < 0 ? "yes" : "no", FL, |
| 762 declen); |
759 } | 763 } |
760 prevFrameSize = static_cast<size_t>(declen/480); | 764 prevFrameSize = static_cast<size_t>(declen/480); |
761 | 765 |
762 } else { | 766 } else { |
763 #ifdef WEBRTC_ISAC_FIX_NB_CALLS_ENABLED | 767 #ifdef WEBRTC_ISAC_FIX_NB_CALLS_ENABLED |
764 declen = WebRtcIsacfix_DecodeNb( ISAC_main_inst, streamdata, | 768 declen = WebRtcIsacfix_DecodeNb( ISAC_main_inst, streamdata, |
765 stream_len, decoded, speechType ); | 769 stream_len, decoded, speechType ); |
766 #else | 770 #else |
767 declen = -1; | 771 declen = -1; |
768 #endif | 772 #endif |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 fclose(inp); | 830 fclose(inp); |
827 fclose(outp); | 831 fclose(outp); |
828 fclose(outbits); | 832 fclose(outbits); |
829 | 833 |
830 if ( testCE == 1) { | 834 if ( testCE == 1) { |
831 WebRtcIsacfix_FreeInternal(ISAC_main_inst); | 835 WebRtcIsacfix_FreeInternal(ISAC_main_inst); |
832 } | 836 } |
833 WebRtcIsacfix_Free(ISAC_main_inst); | 837 WebRtcIsacfix_Free(ISAC_main_inst); |
834 return 0; | 838 return 0; |
835 } | 839 } |
OLD | NEW |