diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index 27f68d2380..dabd475f93 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -114,7 +114,7 @@ static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf_end = buf + buf_size; unsigned int pps_id; unsigned int slice_type; - int state; + int state = -1; const uint8_t *ptr; /* set some sane default values */