]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vc1_parser.c
libopusenc: prevent an out-of-bounds read by returning early
[ffmpeg] / libavcodec / vc1_parser.c
index a6532820d1c7cdc480486a7645801d46e3d1cfeb..7d8d016be943ab39b1cc206bda7361ca88bab303 100644 (file)
@@ -123,7 +123,7 @@ static int vc1_parse(AVCodecParserContext *s,
     uint8_t *unesc_buffer = vpc->unesc_buffer;
     size_t unesc_index = vpc->unesc_index;
     VC1ParseSearchState search_state = vpc->search_state;
-    int start_code_found;
+    int start_code_found = 0;
     int next = END_NOT_FOUND;
     int i = vpc->bytes_to_skip;