]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_refs.c
g2meet: rename FRAME_INFO to more appropriate DISPLAY_INFO
[ffmpeg] / libavcodec / h264_refs.c
index bba77d15b019543dc75ddc1ac5c9a486f6297556..88aaac7e1b524cc4072eb4b38c1bfdf33f3c260e 100644 (file)
@@ -621,6 +621,8 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count)
                      * Report the problem and keep the pair where it is,
                      * and mark this field valid.
                      */
+            if (h->short_ref[0] == h->cur_pic_ptr)
+                remove_short_at_index(h, 0);
 
             if (h->long_ref[mmco[i].long_arg] != h->cur_pic_ptr) {
                 remove_long(h, mmco[i].long_arg, 0);