[FFmpeg-cvslog] avcodec/amrwbdec: Mark default switch as unreachable
Andreas Rheinhardt
git at videolan.org
Wed May 21 13:47:28 EEST 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Oct 3 14:19:33 2021 +0200| [fc9e2a92c12f4544521c954d41b60d42d081c91f] | committer: Andreas Rheinhardt
avcodec/amrwbdec: Mark default switch as unreachable
Alternative fix for Coverity issue #1473499
instead of a3bb269db92601e2dc0e99352468d02f7b26c7c2.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc9e2a92c12f4544521c954d41b60d42d081c91f
---
libavcodec/amrwbdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c
index 929fc30a3c..91fb870a64 100644
--- a/libavcodec/amrwbdec.c
+++ b/libavcodec/amrwbdec.c
@@ -556,7 +556,8 @@ static void decode_fixed_vector(float *fixed_vector, const uint16_t *pulse_hi,
((int) pulse_hi[i] << 11), 4, 1);
break;
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);
More information about the ffmpeg-cvslog
mailing list