j2kpay: skip EPH packets

Include EPH markers into the previous chunk of packets.
This commit is contained in:
Wim Taymans 2011-02-01 16:38:20 +01:00
parent 07ebec51f5
commit f95c30a413

View file

@ -73,6 +73,7 @@ typedef enum
J2K_MARKER_SOC = 0x4F,
J2K_MARKER_SOT = 0x90,
J2K_MARKER_SOP = 0x91,
J2K_MARKER_EPH = 0x92,
J2K_MARKER_SOD = 0x93,
J2K_MARKER_EOC = 0xD9
} RtpJ2KMarker;
@ -236,6 +237,10 @@ find_pu_end (GstRtpJ2KPay * pay, const guint8 * data, guint size,
return offset - 2;
cut_sop = TRUE;
break;
case J2K_MARKER_EPH:
/* just skip over EPH */
GST_LOG_OBJECT (pay, "found EPH at %u", offset);
break;
default:
if (offset >= state->next_sot) {
GST_LOG_OBJECT (pay, "reached next SOT at %u", offset);