mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
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:
parent
e475899f37
commit
1792b3a91b
2 changed files with 9 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue