[Datatype-cvs] h263/payload h263pyld.cpp,1.9.2.1.32.1,1.9.2.1.32.2
huangrenjie at helixcommunity.org huangrenjie at helixcommunity.orgUpdate of /cvsroot/datatype/h263/payload
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv16297
Modified Files:
Tag: hxclient_3_6_2_atlas
h263pyld.cpp
Log Message:
change the meaning of pwi to be consistent
Index: h263pyld.cpp
===================================================================
RCS file: /cvsroot/datatype/h263/payload/h263pyld.cpp,v
retrieving revision 1.9.2.1.32.1
retrieving revision 1.9.2.1.32.2
diff -u -d -r1.9.2.1.32.1 -r1.9.2.1.32.2
--- h263pyld.cpp 16 Sep 2010 17:44:25 -0000 1.9.2.1.32.1
+++ h263pyld.cpp 16 Sep 2010 17:53:52 -0000 1.9.2.1.32.2
@@ -423,7 +423,7 @@
bs.GetBits(4); // CPFMT (bits 1-4)
- int pwi = (bs.GetBits(9) + 1) * 4;
+ int pwi = bs.GetBits(9);
if (bs.GetBits(1)) // CPFMT (bit 14)
{
@@ -437,7 +437,7 @@
if ((phi >= 1) && (phi <= 288))
{
- FrameDim.cx = pwi;
+ FrameDim.cx = (pwi + 1) * 4;
FrameDim.cy = phi * 4;
res = HXR_OK;
}