diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2025-08-03 15:45:32 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2025-08-11 19:29:53 +0000 |
commit | 0798f58abeddef358612db8c84674ba3380f9291 (patch) | |
tree | c96e85e0508c54c227db99b40f0a4c6aca394b59 | |
parent | 2287a19abbd80d25b411a3028969c55c4b0b8c88 (diff) | |
download | ffmpeg-0798f58abeddef358612db8c84674ba3380f9291.tar.gz |
avcodec/mpeg4videodec: add av_unreachable for unexpected startcode
Fixes: mpeg4videodec.c:3679:22: warning: variable 'name' is used
uninitialized whenever 'if' condition is false
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
-rw-r--r-- | libavcodec/mpeg4videodec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index bc2c92672a..f3d138387b 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -3678,6 +3678,8 @@ int ff_mpeg4_parse_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb, name = "Reserved"; else if (startcode <= 0x1FF) name = "System start"; + else + av_unreachable("Unexpected startcode"); av_log(s->avctx, AV_LOG_DEBUG, "startcode: %3X %s at %d\n", startcode, name, get_bits_count(gb)); } |