j2kpay: skip EPH packets
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 1 Feb 2011 15:38:20 +0000 (16:38 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 1 Feb 2011 15:39:10 +0000 (16:39 +0100)
Include EPH markers into the previous chunk of packets.

gst/rtp/gstrtpj2kpay.c

index 7385d3b..3734534 100644 (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);