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

avcodec/mpeg4videodec: Mark impossible switch case as unreachable

Alternative to 8fc649b931.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2021-10-03 14:35:31 +02:00
parent b5824a6dab
commit 7a27357636

View File

@ -24,6 +24,7 @@
#include "config_components.h" #include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
@ -605,7 +606,8 @@ static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g
ctx->sprite_shift[1] = alpha + beta + rho - min_ab + 2; ctx->sprite_shift[1] = alpha + beta + rho - min_ab + 2;
break; break;
default: default:
av_assert0(0); av_unreachable("num_sprite_warping_points outside of 0..3 results in an error"
"in which num_sprite_warping_points is reset to zero");
} }
/* try to simplify the situation */ /* try to simplify the situation */
if (sprite_delta[0][0] == a << ctx->sprite_shift[0] && if (sprite_delta[0][0] == a << ctx->sprite_shift[0] &&