History

avcodec/adpcm: squelch uninitialized variable warnings

Fixes CID1655273 and CID1655274.

Peter Ross committed 1 year ago

Commit 853ad9e1 parent 060fc4e1 file · +4 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/adpcm.c+4−0
@@ -877,6 +877,8 @@ static int adpcm_sanyo_expand3(ADPCMChannelStatus *c, int bits) · 876 unmodified lines
877877 add = (11 * c->step) >> 1;
878878 c->step = 3 * c->step;
879879 break;
880+ default:
881+ av_unreachable("There are cases for all control paths when bits is 3-bit");
880882 }
881883
882884 if (sign)
@@ -934,6 +936,8 @@ static int adpcm_sanyo_expand4(ADPCMChannelStatus *c, int bits) · 51 unmodified lines
934936 add = (25 * c->step) >> 1;
935937 c->step = 5 * c->step;
936938 break;
939+ default:
940+ av_unreachable("There are cases for all control paths when bits is 4-bit");
937941 }
938942
939943 if (sign)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t