[FFmpeg-devel] [PATCH 07/12] avcodec/vlc: Make code more readable with av_unreachable
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Sat May 25 01:04:50 EEST 2024
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavcodec/vlc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vlc.c b/libavcodec/vlc.c
index ee09d96fd6..f869c19650 100644
--- a/libavcodec/vlc.c
+++ b/libavcodec/vlc.c
@@ -49,10 +49,11 @@
v = *(const uint16_t *)ptr; \
break; \
case 4: \
- default: \
- av_assert1(size == 4); \
v = *(const uint32_t *)ptr; \
break; \
+ default: \
+ av_unreachable; \
+ break; \
} \
}
--
2.40.1
More information about the ffmpeg-devel
mailing list