From 1792b3a91b5b826974ec4d41014561bbe74806af Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 12 Dec 2006 20:56:58 +0000 Subject: [PATCH] gst/mpegstream/gstmpegparse.c: Fix unaligned load that loads from the dereferenced integer, not the pointer itself. ... Original commit message from CVS: * gst/mpegstream/gstmpegparse.c: Fix unaligned load that loads from the dereferenced integer, not the pointer itself. Fixes #385192. I'm takin ur cheese! --- ChangeLog | 8 ++++++++ gst/mpegstream/gstmpegparse.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 87c153fd82..840ef2aed9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-12-12 David Schleef + + * gst/mpegstream/gstmpegparse.c: Fix unaligned load that loads + from the dereferenced integer, not the pointer itself. Fixes + #385192. + + I'm takin ur cheese! + 2006-12-12 Tim-Philipp Müller Based on patch by: Roland Kay diff --git a/gst/mpegstream/gstmpegparse.c b/gst/mpegstream/gstmpegparse.c index 31292f6473..36a6973a1a 100644 --- a/gst/mpegstream/gstmpegparse.c +++ b/gst/mpegstream/gstmpegparse.c @@ -515,7 +515,7 @@ gst_mpeg_parse_parse_packhead (GstMPEGParse * mpeg_parse, GstBuffer * buffer) scr - mpeg_parse->current_scr); buf += 6; - new_rate = (GUINT32_FROM_BE ((*(guint32 *) buf)) & 0xfffffc00) >> 10; + new_rate = (GUINT32_FROM_BE (buf) & 0xfffffc00) >> 10; } else { scr = ((guint64) scr1 & 0x0e000000) << 5; scr |= ((guint64) scr1 & 0x00fffe00) << 6;