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>
This commit is contained in:
parent
2287a19abb
commit
0798f58abe
1 changed files with 2 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue