提交 15ca745c authored 作者: Steve Underwood's avatar Steve Underwood

Eliminate more warnings

上级 84324ab7
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id: bitpack16.c,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $
*/ */
/*! \file */ /*! \file */
...@@ -80,12 +78,12 @@ void bv16_bitunpack(const uint8_t *PackedStream, struct BV16_Bit_Stream *BitStru ...@@ -80,12 +78,12 @@ void bv16_bitunpack(const uint8_t *PackedStream, struct BV16_Bit_Stream *BitStru
stream = PackedStream; stream = PackedStream;
bitstream_init(&bs); bitstream_init(&bs);
BitStruct->lspidx[0] = bitstream_get(&bs, &stream, 7); BitStruct->lspidx[0] = (int16_t) bitstream_get(&bs, &stream, 7);
BitStruct->lspidx[1] = bitstream_get(&bs, &stream, 7); BitStruct->lspidx[1] = (int16_t) bitstream_get(&bs, &stream, 7);
BitStruct->ppidx = bitstream_get(&bs, &stream, 7); BitStruct->ppidx = (int16_t) bitstream_get(&bs, &stream, 7);
BitStruct->bqidx = bitstream_get(&bs, &stream, 5); BitStruct->bqidx = (int16_t) bitstream_get(&bs, &stream, 5);
BitStruct->gidx = bitstream_get(&bs, &stream, 4); BitStruct->gidx = (int16_t) bitstream_get(&bs, &stream, 4);
for (i = 0; i < 10; i++) for (i = 0; i < 10; i++)
BitStruct->qvidx[i] = bitstream_get(&bs, &stream, 5); BitStruct->qvidx[i] = (int16_t) bitstream_get(&bs, &stream, 5);
} }
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id: bitpack32.c,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $
*/ */
/*! \file */ /*! \file */
...@@ -82,15 +80,15 @@ void bv32_bitunpack(const uint8_t *PackedStream, struct BV32_Bit_Stream *BitStru ...@@ -82,15 +80,15 @@ void bv32_bitunpack(const uint8_t *PackedStream, struct BV32_Bit_Stream *BitStru
stream = PackedStream; stream = PackedStream;
bitstream_init(&bs); bitstream_init(&bs);
BitStruct->lspidx[0] = bitstream_get(&bs, &stream, 7); BitStruct->lspidx[0] = (int16_t) bitstream_get(&bs, &stream, 7);
BitStruct->lspidx[1] = bitstream_get(&bs, &stream, 5); BitStruct->lspidx[1] = (int16_t) bitstream_get(&bs, &stream, 5);
BitStruct->lspidx[2] = bitstream_get(&bs, &stream, 5); BitStruct->lspidx[2] = (int16_t) bitstream_get(&bs, &stream, 5);
BitStruct->ppidx = bitstream_get(&bs, &stream, 8); BitStruct->ppidx = (int16_t) bitstream_get(&bs, &stream, 8);
BitStruct->bqidx = bitstream_get(&bs, &stream, 5); BitStruct->bqidx = (int16_t) bitstream_get(&bs, &stream, 5);
BitStruct->gidx[0] = bitstream_get(&bs, &stream, 5); BitStruct->gidx[0] = (int16_t) bitstream_get(&bs, &stream, 5);
BitStruct->gidx[1] = bitstream_get(&bs, &stream, 5); BitStruct->gidx[1] = (int16_t) bitstream_get(&bs, &stream, 5);
for (i = 0; i < 20; i++) for (i = 0; i < 20; i++)
BitStruct->qvidx[i] = bitstream_get(&bs, &stream, 6); BitStruct->qvidx[i] = (int16_t) bitstream_get(&bs, &stream, 6);
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论