Commit 1befb228 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

add patchfile for fixes needed in latest LC3plus release for WMC tool

parent 72f76c5b
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -59,3 +59,6 @@ printf '
DisableFormat: true
SortIncludes: Never
' >lib_lc3plus/.clang-format

# temporary until LC3plus release is updated
git apply scripts/lc3plus_lib_setup/lc3plus_float.patch
+49 −0
Original line number Diff line number Diff line
diff --git b/lib_lc3plus/lc3plus.c a/lib_lc3plus/lc3plus.c
index 7063c4e183..594683cd2c 100644
--- b/lib_lc3plus/lc3plus.c
+++ a/lib_lc3plus/lc3plus.c
@@ -77,8 +77,10 @@ static int lc3plus_frame_size_supported(LC3PLUS_FrameDuration frame_dms)
     case LC3PLUS_FRAME_DURATION_7p5MS: /* fallthru */
     case LC3PLUS_FRAME_DURATION_10MS:
             return 1;
-    default: return 0;
+    default: break;
     }
+
+    return 0;
 }
 
 static int null_in_list(void **list, int n)
diff --git b/lib_lc3plus/ltpf_decoder.c a/lib_lc3plus/ltpf_decoder.c
index f6560d9710..48aa9a2d70 100644
--- b/lib_lc3plus/ltpf_decoder.c
+++ a/lib_lc3plus/ltpf_decoder.c
@@ -14,21 +14,25 @@
 #ifdef CR9_C_ADD_1p25MS
 static LC3_INT16 get_continuation (LC3_INT32 fading_case, LC3PLUS_FrameDuration frame_dms, LC3_INT32 pos, LC3_INT32 total) 
 {
+    LC3_INT16 retval;
+
     if ( frame_dms != LC3PLUS_FRAME_DURATION_1p25MS )
     {
-        return 0;
+        retval = 0;
     }
     else
     {
         if ( pos == total )
         {
-            return 0;
+            retval = 0;
         }
         else
         {
-            return fading_case;
+            retval = fading_case;
         }
     }
+    
+    return retval;
 }
 #endif