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
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)

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