[svn] / branches / dev-api-4 / xvidcore / src / bitstream / bitstream.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/bitstream/bitstream.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1140, Wed Sep 10 19:27:23 2003 UTC revision 1141, Wed Sep 10 19:28:40 2003 UTC
# Line 20  Line 20 
20   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
21   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22   *   *
23   * $Id: bitstream.c,v 1.39.2.16 2003-08-26 14:07:11 edgomez Exp $   * $Id: bitstream.c,v 1.39.2.17 2003-09-10 19:28:40 chl Exp $
24   *   *
25   ****************************************************************************/   ****************************************************************************/
26    
# Line 1173  Line 1173 
1173    
1174      if (pParam->fincr>0) {      if (pParam->fincr>0) {
1175              BitstreamPutBit(bs, 1);             /* fixed_vop_rate = 1 */              BitstreamPutBit(bs, 1);             /* fixed_vop_rate = 1 */
1176              BitstreamPutBits(bs, pParam->fincr, log2bin(pParam->fbase));        /* fixed_vop_time_increment */              BitstreamPutBits(bs, pParam->fincr, log2bin(pParam->fbase-1));      /* fixed_vop_time_increment */
1177      }else{      }else{
1178          BitstreamPutBit(bs, 0);         /* fixed_vop_rate = 0 */          BitstreamPutBit(bs, 0);         /* fixed_vop_rate = 0 */
1179      }      }
# Line 1293  Line 1293 
1293    
1294          /* time_increment: value=nth_of_sec, nbits = log2(resolution) */          /* time_increment: value=nth_of_sec, nbits = log2(resolution) */
1295    
1296          BitstreamPutBits(bs, frame->ticks, log2bin(pParam->fbase));          BitstreamPutBits(bs, frame->ticks, log2bin(pParam->fbase-1));
1297  #if 0  #if 0
1298          DPRINTF("[%i:%i] %c",          DPRINTF("[%i:%i] %c",
1299                          frame->seconds, frame->ticks,                          frame->seconds, frame->ticks,

Legend:
Removed from v.1140  
changed lines
  Added in v.1141

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4