mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
gst/mpegstream/gstmpegparse.c: Use our alignment-safe macros here too, since we can't assume that
Original commit message from CVS: * gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_parse_packhead): Use our alignment-safe macros here too, since we can't assume that GST_BUFFER_DATA is aligned (these are subbuffers we're dealing with here).
This commit is contained in:
parent
fe3357b647
commit
d26b52d5ce
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-12-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_parse_packhead):
|
||||
Use our alignment-safe macros here too, since we can't assume that
|
||||
GST_BUFFER_DATA is aligned (these are subbuffers we're dealing with
|
||||
here).
|
||||
|
||||
2006-12-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/realmedia/rmdemux.c: (gst_rmdemux_parse_indx_data):
|
||||
|
|
|
@ -492,8 +492,8 @@ gst_mpeg_parse_parse_packhead (GstMPEGParse * mpeg_parse, GstBuffer * buffer)
|
|||
buf = GST_BUFFER_DATA (buffer);
|
||||
buf += 4;
|
||||
|
||||
scr1 = GUINT32_FROM_BE (*(guint32 *) buf);
|
||||
scr2 = GUINT32_FROM_BE (*(guint32 *) (buf + 4));
|
||||
scr1 = GST_READ_UINT32_BE (buf);
|
||||
scr2 = GST_READ_UINT32_BE (buf + 4);
|
||||
|
||||
/* Extract the SCR and rate values from the header. */
|
||||
if (GST_MPEG_PACKETIZE_IS_MPEG2 (mpeg_parse->packetize)) {
|
||||
|
|
Loading…
Reference in a new issue