From f22494b6fe280cd789e3b3db210f963afc6cbf3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 26 Mar 2009 13:20:18 +0100 Subject: mxf: Use mxf_u{l,uid}_is_equal() and friends instead of memcmp() --- gst/mxf/mxfdv-dif.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gst/mxf/mxfdv-dif.c') diff --git a/gst/mxf/mxfdv-dif.c b/gst/mxf/mxfdv-dif.c index 9e722532..a239958d 100644 --- a/gst/mxf/mxfdv-dif.c +++ b/gst/mxf/mxfdv-dif.c @@ -42,8 +42,9 @@ GST_DEBUG_CATEGORY_EXTERN (mxf_debug); #define GST_CAT_DEFAULT mxf_debug -static const guint8 picture_essence_coding_dv[13] = { - 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x01, 0x04, 0x01, 0x02, 0x02, 0x02 +static const MXFUL picture_essence_coding_dv = { { + 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x01, 0x04, 0x01, 0x02, 0x02, + 0x02} }; static gboolean @@ -76,7 +77,7 @@ mxf_is_dv_dif_essence_track (const MXFMetadataTimelineTrack * track) p = MXF_METADATA_GENERIC_PICTURE_ESSENCE_DESCRIPTOR (d); key = &p->picture_essence_coding; - if (memcmp (key, &picture_essence_coding_dv, 13) == 0) + if (mxf_ul_is_subclass (&picture_essence_coding_dv, key)) return TRUE; } } -- cgit v1.2.1