# HG changeset patch # User reimar # Date 1159030809 0 # Node ID f3f751f50ccfc13c6c36ba6afcc3c43137c23f71 # Parent 1cf4e1373d4eee396184859df034a0691db753d9 Missing part of previous patch to demux_real.c (revision 19958) diff -r 1cf4e1373d4e -r f3f751f50ccf libmpdemux/demux_real.c --- a/libmpdemux/demux_real.c Sat Sep 23 16:46:08 2006 +0000 +++ b/libmpdemux/demux_real.c Sat Sep 23 17:00:09 2006 +0000 @@ -882,7 +882,7 @@ mp_dbg(MSGT_DEMUX,MSGL_DBG2, "l: %02X %02X ",vpkg_length>>8,vpkg_length&0xff); if (!(vpkg_length&0xC000)) { vpkg_length<<=16; - vpkg_length|=stream_read_word(demuxer->stream); + vpkg_length|=(uint16_t)stream_read_word(demuxer->stream); mp_dbg(MSGT_DEMUX,MSGL_DBG2, "l+: %02X %02X ",(vpkg_length>>8)&0xff,vpkg_length&0xff); len-=2; } else @@ -896,7 +896,7 @@ mp_dbg(MSGT_DEMUX,MSGL_DBG2, "o: %02X %02X ",vpkg_offset>>8,vpkg_offset&0xff); if (!(vpkg_offset&0xC000)) { vpkg_offset<<=16; - vpkg_offset|=stream_read_word(demuxer->stream); + vpkg_offset|=(uint16_t)stream_read_word(demuxer->stream); mp_dbg(MSGT_DEMUX,MSGL_DBG2, "o+: %02X %02X ",(vpkg_offset>>8)&0xff,vpkg_offset&0xff); len-=2; } else