[Sumover-dev] [svn commit] r4785 - vic/branches/cc/codec
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Wed Apr 28 20:12:54 BST 2010
Author: soohyunc
Date: Wed Apr 28 20:12:54 2010
New Revision: 4785
Modified:
vic/branches/cc/codec/encoder-h261.cpp
Log:
tagging in a right place, whether or not it is a new frame.
Modified: vic/branches/cc/codec/encoder-h261.cpp
==============================================================================
--- vic/branches/cc/codec/encoder-h261.cpp (original)
+++ vic/branches/cc/codec/encoder-h261.cpp Wed Apr 28 20:12:54 2010
@@ -963,7 +963,6 @@
tx_->flush();
pktbuf* pb = pool_->alloc(vf->ts_, RTP_PT_H261);
- pb->tag = true;
bs_ = &pb->data[HDRSIZE];
bc_ = bs_;
u_int ec = (tx_->mtu() - HDRSIZE) << 3;
@@ -1019,6 +1018,7 @@
if (cbits > ec) {
pktbuf* npb;
npb = pool_->alloc(vf->ts_, RTP_PT_H261);
+ pb->tag = true; // turn on tag (start new frame)
cc += flush(pb, nbit, npb);
cbits -= nbit;
pb = npb;
@@ -1052,8 +1052,8 @@
}
}
+ pb->tag = false; // turn off tag (end of frame)
}
- pb->tag = false;
cc += flush(pb, ((bc_ - bs_) << 3) + nbb_, 0);
// time measurement
More information about the Sumover-dev
mailing list