1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/amrwbdec: Mark default switch as unreachable

Alternative fix for Coverity issue #1473499
instead of a3bb269db9.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2021-10-03 14:19:33 +02:00
parent 004cc60f0e
commit fc9e2a92c1

View File

@ -556,7 +556,8 @@ static void decode_fixed_vector(float *fixed_vector, const uint16_t *pulse_hi,
((int) pulse_hi[i] << 11), 4, 1); ((int) pulse_hi[i] << 11), 4, 1);
break; break;
default: default:
av_assert2(0); av_unreachable("Everything >= MODE_SID is impossible: MODE_SID is patchwelcome,"
"> MODE_SID is invalid");
} }
memset(fixed_vector, 0, sizeof(float) * AMRWB_SFR_SIZE); memset(fixed_vector, 0, sizeof(float) * AMRWB_SFR_SIZE);