⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.c.patch

📁 linux环境下用纯c写的RTP协议的通用开发库
💻 PATCH
字号:
5c5<  * $Id: common.c.patch,v 1.2 2000/06/29 23:02:51 evangemh Exp $--->  * $Id: common.c.patch,v 1.2 2000/06/29 23:02:51 evangemh Exp $7a8,25>  * Revision 1.3  2000/06/29 22:18:32  evangemh>  * preparing for distribution>  *>  * Revision 1.2  2000/03/06 19:05:39  evangemh>  * Back from trip>  *>  * Revision 1.1  2000/02/28 16:27:15  evangemh>  * Integrated MPEG audioplayer with main>  *>  * Revision 1.3  2000/02/28 15:26:45  evangemh>  * Works with RTP now>  *>  * Revision 1.2  2000/02/27 03:28:38  evangemh>  * got reference player to work with rtplib; hacky>  *>  * Revision 1.1.1.1  2000/02/23 14:33:06  evangemh>  * Official MPEG 1/2 Audio LSF Decoder Refernce Implementation>  *1001,1002c1019,1020< unsigned int get1bit(bs)< Bit_stream_struc *bs;   /* bit stream structure */---> /*unsigned int get1bit(bs)> Bit_stream_struc *bs;1026a1045,1047> */> unsigned int get1bit(Bit_stream_struc *bs) {>   return getbits(bs, 1);1028a1050> 1092c1114,1120<    if (!bs->buf_bit_idx) {--->    /* on last bit of byte? */>    if (bs->buf_bit_idx == 0) {>      /* on last byte of buffer? */>      if (bs->buf_byte_idx == bs->buf_size - 1) {>        fprintf(stderr, "getbits: out of buffer at position %d:%d (totbit = %d)\n", bs->buf_byte_idx, 0, bs->totbit);>        exit(1);>      }1094,1096c1122,1125<         bs->buf_byte_idx--;<         if ((bs->buf_byte_idx < MINIMUM) || (bs->buf_byte_idx < bs->eob)) {<              if (bs->eob)--->      bs->buf_byte_idx++;>      /*        if ((bs->buf_byte_idx < MINIMUM) || (bs->buf_byte_idx < bs->eob)) {*/>      /* SHOULDNT RUN OUT OF BUFFER */>      /*     if (bs->eob)1101c1130<                 refill_buffer(bs);---> 	    refill_buffer(bs)*1103,1104c1132<              }<         }---> 	    }*/1204a1233> 1380c1409< static unsigned long offset,totbit=0, buf_byte_idx=0;---> /*static */unsigned long offset = 0,totbit=0, buf_byte_idx=0;1382c1411< static unsigned int buf_bit_idx=8;---> /* static*/ unsigned int buf_bit_idx=8;1425c1454< return(hgetbits(1));--->   return(hgetbits(1));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -