From d108fe7ee1f6fd925f02dc731b26bbc75600ea23 Mon Sep 17 00:00:00 2001 From: Stefan Ringel Date: Thu, 27 Mar 2014 21:22:32 +0100 Subject: [PATCH] mpegts: use GST_READ_UINT32_BE Signed-off-by: Stefan Ringel https://bugzilla.gnome.org/show_bug.cgi?id=727187 --- gst-libs/gst/mpegts/gst-dvb-descriptor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst-libs/gst/mpegts/gst-dvb-descriptor.c b/gst-libs/gst/mpegts/gst-dvb-descriptor.c index c4d660152b..8386db7835 100644 --- a/gst-libs/gst/mpegts/gst-dvb-descriptor.c +++ b/gst-libs/gst/mpegts/gst-dvb-descriptor.c @@ -770,8 +770,7 @@ gst_mpegts_descriptor_parse_terrestrial_delivery_system (const data = (guint8 *) descriptor->data + 2; res->frequency = 0; - res->frequency = - *(data + 3) | *(data + 2) << 8 | *(data + 1) << 16 | *data << 24; + res->frequency = GST_READ_UINT32_BE (data); res->frequency *= 10; data += 4;