" DTS: %" GST_TIME_FORMAT " AVTP_TS: %" GST_TIME_FORMAT
" H264_TS: %" GST_TIME_FORMAT "\navtp_time: %" G_GUINT64_FORMAT
" h264_time: %" G_GUINT64_FORMAT, GST_TIME_ARGS (h264_time),
- GST_TIME_ARGS (avtp_time), GST_TIME_ARGS ((guint32) avtp_time),
- GST_TIME_ARGS ((guint32) h264_time), avtp_time, h264_time);
+ GST_TIME_ARGS (avtp_time), GST_TIME_ARGS (avtp_time & 0xffffffff),
+ GST_TIME_ARGS (h264_time & 0xffffffff), avtp_time, h264_time);
}
}
struct avtp_stream_pdu *pdu;
GstMapInfo info;
guint32 type;
+ gint r;
gst_buffer_map (buf, &info, GST_MAP_WRITE);
pdu = (struct avtp_stream_pdu *) info.data;
- avtp_pdu_get ((struct avtp_common_pdu *) pdu, AVTP_FIELD_SUBTYPE, &type);
+ r = avtp_pdu_get ((struct avtp_common_pdu *) pdu, AVTP_FIELD_SUBTYPE, &type);
+ g_assert (r == 0);
if (type == AVTP_SUBTYPE_AAF)
avtp_aaf_pdu_set (pdu, AVTP_AAF_FIELD_TIMESTAMP, avtp_tstamp);
else if (type == AVTP_SUBTYPE_CVF) {
struct avtp_stream_pdu *pdu;
GstMapInfo info;
guint32 type;
+ gint r;
gst_buffer_map (buf, &info, GST_MAP_WRITE);
pdu = (struct avtp_stream_pdu *) info.data;
GST_BUFFER_PTS (buf) = orig->buf_pts;
GST_BUFFER_DTS (buf) = orig->buf_dts;
- avtp_pdu_get ((struct avtp_common_pdu *) pdu, AVTP_FIELD_SUBTYPE, &type);
+ r = avtp_pdu_get ((struct avtp_common_pdu *) pdu, AVTP_FIELD_SUBTYPE, &type);
+ g_assert (r == 0);
if (type == AVTP_SUBTYPE_AAF)
avtp_aaf_pdu_set (pdu, AVTP_AAF_FIELD_TIMESTAMP, orig->avtp_ts);
else if (type == AVTP_SUBTYPE_CVF) {
guint8 nal_size[4];
gst_buffer_extract (buffer, 0, nal_size, 4);
- return (nal_size[0] << 24) | (nal_size[1] << 16) | (nal_size[2] << 8) |
- nal_size[3];
+ return GST_READ_UINT32_BE (nal_size);
}
static gsize
return NULL;
gst_buffer_extract (buffer, *offset, buf, 4);
- nal_size = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
+ nal_size = GST_READ_UINT32_BE (buf);
ret =
gst_buffer_copy_region (buffer, GST_BUFFER_COPY_MEMORY, *offset,