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

avcodec/vlc: Make code more readable with av_unreachable()

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2021-10-03 15:18:45 +02:00
parent fc520ccb07
commit d7d1379d06

View File

@ -42,6 +42,8 @@
{ \
const uint8_t *ptr = (const uint8_t *)table + i * wrap; \
switch(size) { \
default: \
av_unreachable("Only uint8/16/32_t are used"); \
case 1: \
v = *(const uint8_t *)ptr; \
break; \
@ -49,8 +51,6 @@
v = *(const uint16_t *)ptr; \
break; \
case 4: \
default: \
av_assert1(size == 4); \
v = *(const uint32_t *)ptr; \
break; \
} \