]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vc1_parser.c
Merge commit '2f172f1ae984b763c06069adb51d0053b3834f4b'
[ffmpeg] / libavcodec / vc1_parser.c
index 8d058ad10d2a5f25c39c0d5d3b3f833896fce10c..33e672fa0f467a14cc9716f05eca2689a593734c 100644 (file)
@@ -127,6 +127,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 = 0;
     int next = END_NOT_FOUND;
     int i = vpc->bytes_to_skip;
 
@@ -137,8 +138,8 @@ static int vc1_parse(AVCodecParserContext *s,
         next = 0;
     }
     while (i < buf_size) {
-        int start_code_found = 0;
         uint8_t b;
+        start_code_found = 0;
         while (i < buf_size && unesc_index < UNESCAPED_THRESHOLD) {
             b = buf[i++];
             unesc_buffer[unesc_index++] = b;