|
From: <wt...@ke...> - 2011-02-01 15:39:55
|
Module: gst-plugins-good Branch: master Commit: f95c30a4131a009c9b1e19ed94200fb2aa71f6bd URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=f95c30a4131a009c9b1e19ed94200fb2aa71f6bd Author: Wim Taymans <wim...@co...> Date: Tue Feb 1 16:38:20 2011 +0100 j2kpay: skip EPH packets Include EPH markers into the previous chunk of packets. --- gst/rtp/gstrtpj2kpay.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/gst/rtp/gstrtpj2kpay.c b/gst/rtp/gstrtpj2kpay.c index 7385d3b..3734534 100644 --- a/gst/rtp/gstrtpj2kpay.c +++ b/gst/rtp/gstrtpj2kpay.c @@ -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); |