You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/adpcm: squelch uninitialized variable warnings
Fixes CID1655273 and CID1655274. Signed-off-by: Marvin Scholz <epirat07@gmail.com>
This commit is contained in:
committed by
Marvin Scholz
parent
060fc4e3a5
commit
853ad9e77e
@ -877,6 +877,8 @@ static int adpcm_sanyo_expand3(ADPCMChannelStatus *c, int bits)
|
|||||||
add = (11 * c->step) >> 1;
|
add = (11 * c->step) >> 1;
|
||||||
c->step = 3 * c->step;
|
c->step = 3 * c->step;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
av_unreachable("There are cases for all control paths when bits is 3-bit");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sign)
|
if (sign)
|
||||||
@ -934,6 +936,8 @@ static int adpcm_sanyo_expand4(ADPCMChannelStatus *c, int bits)
|
|||||||
add = (25 * c->step) >> 1;
|
add = (25 * c->step) >> 1;
|
||||||
c->step = 5 * c->step;
|
c->step = 5 * c->step;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
av_unreachable("There are cases for all control paths when bits is 4-bit");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sign)
|
if (sign)
|
||||||
|
Reference in New Issue
Block a user