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