You've already forked FFmpeg
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:
@ -24,6 +24,7 @@
|
||||
|
||||
#include "config_components.h"
|
||||
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/opt.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;
|
||||
break;
|
||||
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 */
|
||||
if (sprite_delta[0][0] == a << ctx->sprite_shift[0] &&
|
||||
|
Reference in New Issue
Block a user