Commit c1b8802c authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by GStreamer Merge Bot

codecs: h264picture: use g_array_remove_index_fast()

This algorithm is faster than the normal one. The problem is it
disorders the elements in the dpb, but it does not seem to mess
decoders.

Part-of: <!1378>
parent 76411205
Pipeline #168800 waiting for manual action with stages
in 10 minutes and 34 seconds
......@@ -227,7 +227,7 @@ gst_h264_dpb_delete_unused (GstH264Dpb * dpb)
if (picture->outputted && !picture->ref) {
GST_TRACE ("remove picture %p (frame num %d) from dpb",
picture, picture->frame_num);
g_array_remove_index (dpb->pic_list, i);
g_array_remove_index_fast (dpb->pic_list, i);
i--;
}
}
......@@ -255,7 +255,7 @@ gst_h264_dpb_delete_by_poc (GstH264Dpb * dpb, gint poc)
GST_TRACE ("remove picture %p for poc %d (frame num %d) from dpb",
picture, poc, picture->frame_num);
g_array_remove_index (dpb->pic_list, i);
g_array_remove_index_fast (dpb->pic_list, i);
return;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment