Fixes CID1655273 and CID1655274.
Unified · Split
| @@ -877,6 +877,8 @@ static int adpcm_sanyo_expand3(ADPCMChannelStatus *c, int bits) · 876 unmodified lines | ||
| 877 | 877 | add = (11 * c->step) >> 1; |
| 878 | 878 | c->step = 3 * c->step; |
| 879 | 879 | break; |
| 880 | + default: | |
| 881 | + av_unreachable("There are cases for all control paths when bits is 3-bit"); | |
| 880 | 882 | } |
| 881 | 883 | |
| 882 | 884 | if (sign) |
| @@ -934,6 +936,8 @@ static int adpcm_sanyo_expand4(ADPCMChannelStatus *c, int bits) · 51 unmodified lines | ||
| 934 | 936 | add = (25 * c->step) >> 1; |
| 935 | 937 | c->step = 5 * c->step; |
| 936 | 938 | break; |
| 939 | + default: | |
| 940 | + av_unreachable("There are cases for all control paths when bits is 4-bit"); | |
| 937 | 941 | } |
| 938 | 942 | |
| 939 | 943 | if (sign) |