mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
[MOVED FROM GST-P-FARSIGHT] Skip non-keyframes before we get a keyframe
20080725194833-3e2dc-583df57c8ebce4b149a01768ed7d3737136a208f.gz
This commit is contained in:
parent
ca53565719
commit
3e785ea2de
1 changed files with 8 additions and 0 deletions
|
@ -212,6 +212,14 @@ gst_mimdec_chain (GstPad *pad, GstBuffer *in)
|
||||||
GstEvent * event;
|
GstEvent * event;
|
||||||
gboolean result;
|
gboolean result;
|
||||||
|
|
||||||
|
/* Check if its a keyframe, otherwise skip it */
|
||||||
|
if (GUINT32_FROM_LE(*((guint32 *) (frame_body + 12))) != 0) {
|
||||||
|
gst_adapter_flush (mimdec->adapter, mimdec->payload_size);
|
||||||
|
mimdec->have_header = FALSE;
|
||||||
|
res = GST_FLOW_OK;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
mimdec->dec = mimic_open ();
|
mimdec->dec = mimic_open ();
|
||||||
if (mimdec->dec == NULL) {
|
if (mimdec->dec == NULL) {
|
||||||
GST_WARNING_OBJECT (mimdec, "mimic_open error\n");
|
GST_WARNING_OBJECT (mimdec, "mimic_open error\n");
|
||||||
|
|
Loading…
Reference in a new issue