Use the right bytes when parsing the LPCM dvd header

Original commit message from CVS:
Use the right bytes when parsing the LPCM dvd header
This commit is contained in:
Michael Smith 2005-09-01 11:34:39 +00:00
parent 0f5b17ead6
commit d4eba730ac
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2005-09-01 Michael Smith <msmith@fluendo.com>
* gst/dvdlpcmdec/gstdvdlpcmdec.c: (gst_dvdlpcm_reset),
(gst_dvdlpcmdec_init), (gst_dvdlpcmdec_setcaps),
(update_timestamps), (parse_header), (gst_dvdlpcmdec_chain_dvd),
(gst_dvdlpcmdec_chain_raw):
Use the right bytes to parse the LPCM dvd header
2005-09-01 Michael Smith <msmith@fluendo.com>
* gst/dvdlpcmdec/gstdvdlpcmdec.c: (gst_dvdlpcm_reset),

View file

@ -322,7 +322,7 @@ gst_dvdlpcmdec_chain_dvd (GstPad * pad, GstBuffer * buf)
* encoded.
*/
gint first_access = (data[0] << 8) | data[1];
guint32 header = (data[2] << 16) | (data[3] << 8) | data[2];
guint32 header = (data[2] << 16) | (data[3] << 8) | data[4];
GstBuffer *subbuf;
GstFlowReturn ret;
int off, len;