mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
apply patch from vishnu
Original commit message from CVS: apply patch from vishnu
This commit is contained in:
parent
90670eda59
commit
529c1bb0e3
1 changed files with 6 additions and 2 deletions
|
@ -343,9 +343,13 @@ gst_mpeg_parse_parse_packhead (GstMPEGParse *mpeg_parse, GstBuffer *buffer)
|
|||
scr |= (scr1 & 0x00fffe00) << 6;
|
||||
scr |= (scr1 & 0x000000ff) << 7;
|
||||
scr |= (scr2 & 0xfe000000) >> 25;
|
||||
|
||||
|
||||
buf += 5;
|
||||
new_rate = (GUINT32_FROM_BE ((*(guint32 *) buf)) & 0x7ffffe00) >> 9;
|
||||
/* we do this byte by byte because buf[3] might be outside of buf's
|
||||
* memory space */
|
||||
new_rate = (buf[0] & 0x7f) << 15;
|
||||
new_rate |= buf[1] << 7;
|
||||
new_rate |= buf[2] >> 1;
|
||||
}
|
||||
|
||||
scr_orig = scr;
|
||||
|
|
Loading…
Reference in a new issue