mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
j2kpay: skip EPH packets
Include EPH markers into the previous chunk of packets.
This commit is contained in:
parent
07ebec51f5
commit
f95c30a413
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,7 @@ typedef enum
|
||||||
J2K_MARKER_SOC = 0x4F,
|
J2K_MARKER_SOC = 0x4F,
|
||||||
J2K_MARKER_SOT = 0x90,
|
J2K_MARKER_SOT = 0x90,
|
||||||
J2K_MARKER_SOP = 0x91,
|
J2K_MARKER_SOP = 0x91,
|
||||||
|
J2K_MARKER_EPH = 0x92,
|
||||||
J2K_MARKER_SOD = 0x93,
|
J2K_MARKER_SOD = 0x93,
|
||||||
J2K_MARKER_EOC = 0xD9
|
J2K_MARKER_EOC = 0xD9
|
||||||
} RtpJ2KMarker;
|
} RtpJ2KMarker;
|
||||||
|
@ -236,6 +237,10 @@ find_pu_end (GstRtpJ2KPay * pay, const guint8 * data, guint size,
|
||||||
return offset - 2;
|
return offset - 2;
|
||||||
cut_sop = TRUE;
|
cut_sop = TRUE;
|
||||||
break;
|
break;
|
||||||
|
case J2K_MARKER_EPH:
|
||||||
|
/* just skip over EPH */
|
||||||
|
GST_LOG_OBJECT (pay, "found EPH at %u", offset);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (offset >= state->next_sot) {
|
if (offset >= state->next_sot) {
|
||||||
GST_LOG_OBJECT (pay, "reached next SOT at %u", offset);
|
GST_LOG_OBJECT (pay, "reached next SOT at %u", offset);
|
||||||
|
|
Loading…
Reference in a new issue