mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
mimdec: Ignore pause frames
This commit is contained in:
parent
316236761c
commit
f410614403
1 changed files with 7 additions and 1 deletions
|
@ -172,7 +172,7 @@ gst_mimdec_chain (GstPad * pad, GstBuffer * in)
|
|||
(mimdec->have_header ? mimdec->payload_size : 24)) {
|
||||
if (!mimdec->have_header) {
|
||||
header = (guchar *) gst_adapter_peek (mimdec->adapter, 24);
|
||||
header_size = GUINT16_FROM_LE (*(guint16 *) (header + 0));
|
||||
header_size = header[0];
|
||||
if (header_size != 24) {
|
||||
GST_WARNING_OBJECT (mimdec,
|
||||
"invalid frame: header size %d incorrect", header_size);
|
||||
|
@ -201,6 +201,12 @@ gst_mimdec_chain (GstPad * pad, GstBuffer * in)
|
|||
mimdec->have_header = TRUE;
|
||||
}
|
||||
|
||||
/* Check if its paused frame, drop it */
|
||||
if (mimdec->payload_size == 0) {
|
||||
mimdec->have_header = FALSE;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (gst_adapter_available (mimdec->adapter) < mimdec->payload_size) {
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue