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!
This commit is contained in:
David Schleef 2006-12-12 20:56:58 +00:00
parent e475899f37
commit 1792b3a91b
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2006-12-12 David Schleef <ds@schleef.org>
* 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 <tim at centricular dot net>
Based on patch by: Roland Kay <roland.kay at ox compsoc net>

View file

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