mpegts: use GST_READ_UINT32_BE

Signed-off-by: Stefan Ringel <linuxtv@stefanringel.de>

https://bugzilla.gnome.org/show_bug.cgi?id=727187
This commit is contained in:
Stefan Ringel 2014-03-27 21:22:32 +01:00 committed by Edward Hervey
parent 8b8ceb2dd9
commit d108fe7ee1

View file

@ -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;