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.42 2004-03-22 22:36:23 edgomez Exp $ |
* $Id: bitstream.c,v 1.42.2.1 2004-05-02 10:33:22 edgomez Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
1197 |
|
|
1198 |
if (pParam->fincr>0) { |
if (pParam->fincr>0) { |
1199 |
BitstreamPutBit(bs, 1); /* fixed_vop_rate = 1 */ |
BitstreamPutBit(bs, 1); /* fixed_vop_rate = 1 */ |
1200 |
BitstreamPutBits(bs, pParam->fincr, log2bin(pParam->fbase-1)); /* fixed_vop_time_increment */ |
BitstreamPutBits(bs, pParam->fincr, MAX(log2bin(pParam->fbase-1),1)); /* fixed_vop_time_increment */ |
1201 |
}else{ |
}else{ |
1202 |
BitstreamPutBit(bs, 0); /* fixed_vop_rate = 0 */ |
BitstreamPutBit(bs, 0); /* fixed_vop_rate = 0 */ |
1203 |
} |
} |
1323 |
WRITE_MARKER(); |
WRITE_MARKER(); |
1324 |
|
|
1325 |
/* time_increment: value=nth_of_sec, nbits = log2(resolution) */ |
/* time_increment: value=nth_of_sec, nbits = log2(resolution) */ |
1326 |
|
BitstreamPutBits(bs, frame->ticks, MAX(log2bin(pParam->fbase-1), 1)); |
|
BitstreamPutBits(bs, frame->ticks, log2bin(pParam->fbase-1)); |
|
1327 |
#if 0 |
#if 0 |
1328 |
DPRINTF("[%i:%i] %c", |
DPRINTF("[%i:%i] %c", |
1329 |
frame->seconds, frame->ticks, |
frame->seconds, frame->ticks, |