]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_parser.c
Merge commit '30e50c50274f88f0f5ae829f401cd3c7f5266719'
[ffmpeg] / libavcodec / h264_parser.c
index a075bfa987adbf1c34680a6a86c4bcf964ebbeb5..1d4c2cfaee4dbcb49c536c995f68ab04e86d5a1e 100644 (file)
@@ -66,7 +66,7 @@ static int h264_find_frame_end(H264Context *h, const uint8_t *buf,
         }
 
         if (state == 7) {
-            i += h->h264dsp.h264_find_start_code_candidate(buf + i, next_avc - i);
+            i += h->h264dsp.startcode_find_candidate(buf + i, next_avc - i);
             if (i < next_avc)
                 state = 2;
         } else if (state <= 2) {
@@ -99,7 +99,6 @@ static int h264_find_frame_end(H264Context *h, const uint8_t *buf,
                 init_get_bits(&gb, h->parse_history, 8*h->parse_history_count);
                 h->parse_history_count=0;
                 mb= get_ue_golomb_long(&gb);
-                last_mb= h->parse_last_mb;
                 h->parse_last_mb= mb;
                 if (pc->frame_start_found) {
                     if (mb <= last_mb)