diff mbox series

[FFmpeg-devel,3/5] avcodec/mpeg4videodec: assert impossible wrap points

Message ID 20240512000349.3381912-3-michael@niedermayer.cc
State Accepted
Commit 8fc649b931a3cbc3a2dd9b50b75a9261a2fb4b49
Headers show
Series [FFmpeg-devel,1/5] avcodec/lpc: copy levenson coeffs only when they have been computed | expand

Commit Message

Michael Niedermayer May 12, 2024, 12:03 a.m. UTC
Helps: CID1473517 Uninitialized scalar variable
Helps: CID1473497 Uninitialized scalar variable

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/mpeg4videodec.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 6a7a37e8171..df1e22207db 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -597,6 +597,8 @@  static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g
         ctx->sprite_shift[0]  = alpha + beta + rho - min_ab;
         ctx->sprite_shift[1]  = alpha + beta + rho - min_ab + 2;
         break;
+    default:
+        av_assert0(0);
     }
     /* try to simplify the situation */
     if (sprite_delta[0][0] == a << ctx->sprite_shift[0] &&